Download

Tyre Change in VR with the HTC Vive -ASSEMBLY TRAINING-

Hey guys,

I’m a beginner in UE4 and having some issues doing a VR project in university. The task is to do a tyre change in VR with the HTC Vive. I really hope someone of you can help me to get the right direction how to do it. I have built an environment and imported all the necessary models.

This should be the steps:

Pick up the impact wrench and attach it to the hand in the right position (trigger should still be used for ‘picking up’ the screws):

https://forums.unrealengine.com/filedata/fetch?filedataid=128073&type=thumb

Release the screws of the wheel with the impact wrench attached to the hand mesh:

https://forums.unrealengine.com/filedata/fetch?filedataid=128074&type=thumb

Lay down the impact wrench and ‘pick up’ the wheel using only the hands:

https://forums.unrealengine.com/filedata/fetch?filedataid=128075&type=thumb

Take a new wheel and let it snap on the right position on the wheel hub and the same thing with the screws to reassemble the whole structure.

Does anyone of you have an idea how to solve my problems? I would be very very thankful because I could finally start my Bachelor thesis when this project is done.

Thanks in advance and greetings from Germany.

Ralf

Hey @vr_marco ,

I had to write my last two exams, so it lasts a little longer than I thought. But here is the current state of my project:

I’ve merged the different parts of the wrench to one, so I could use the logic of the PickUp Cube and did the same for the rim and the tire. For each bolt I used the PickUp logic too. For the wheel and the bolts I deactivated the ‘Simulate Physics’ checkbox because the parts felt down by starting the preview. Is that all right or do I have to use ‘normal’ BP’s for the bolts?

https://forums.unrealengine.com/filedata/fetch?filedataid=129160

I also watched some tutorials for using sockets and tried to apply it to my project but I’m not sure if it’s right and working because my university is closed for the days of Cologne carnival and I have no HMD at home to try. Here’s what I did:

  1. I added a socket to the VR Mannequin mesh of the hand

https://forums.unrealengine.com/filedata/fetch?filedataid=129163

  1. I made an own BP for the merged wrench and put it into the level

https://forums.unrealengine.com/filedata/fetch?filedataid=129161

https://forums.unrealengine.com/filedata/fetch?filedataid=129162

Am I on the right way doing it like this?

The next steps will be to build the BP’s for picking up the bolts with the wrench, laying down the wrench, picking up the wheel etc.
But I’m not really sure how to do that all (for example the counter of the 5 bolts to set the wheel ‘pickupable’).
I will try some things and let you know if I did that with some new screenshots.

Thank you very much.

MfG

Ralf

Hey @vr_marco ,

I can not thank you enough but I’m still struggling with some issues I don’t really understand or don’t know the name of the most BP’s. I made a short list with my questions and I hope you can help me again :slight_smile:

Wrench
[ul]
[li]Overlapping collision sphere of the wrench attaches the wrench to the hand with socket.[/li][LIST]
[li]Are both hands possible? Because there is only the right hand in the Mannequin BP.[/li][/ul]
[li]Overlapping the collision sphere next to the wrench should detach the wrench from the hand.[/li][ul]
[li]Generate an Overlap Event in Level Blueprint? How can I cast to the wrench to detach it from the hand?/What is the target?[/li][li]Is it possible to pick up the wrench again? Because it`s in the green collision sphere then.[/li][li]How can I set the physics for the wrench to put it down on the tool car?[/li][/ul]
[/LIST]

Bolts
[ul]
[li]Grabbing the bolts with the attached wrench by pulling the trigger and putting them down on the tool car by releasing the trigger?[/li][LIST]
[li]Is the simple PickUp_Cube logic sufficient in this case?[/li][li]How can I ensure that only the hand with the attached wrench can grab the bolts?[/li][li]How can I adjust the position of the bolts to the tip of the wrench?[/li][/ul]
[/LIST]

Wheel
[ul]
[li]Wheel should be grabbable when all five bolts are undone.[/li][LIST]
[li]Is here the simple PickUp_Cube logic sufficient or do I have to build an own BP for the wheel?[/li][li]How do I have to build the „countdown“ for the 5 bolts? Using a variable?[/li][li]How can I ensure that the wheel can only be grabbed with both hands and if the wrench is detached? (more realistic)[/li][li]How can I handle it to snap the wheel in the right position when reassembling it to the hub? Using a collision sphere again? Same for the bolts. (Level Blueprint or wheel/bolt Blueprint?)[/li][/ul]
[/LIST]
I know these are many questions but I’m really trying to make as good as I can to have the chance to write my Bachelor Thesis at the institute where I’m doing this project.

Thanks a lot in advance.

Viele Grüße

Ralf

Hey @vr_marco ,

that’s a good idea. Yesterday I could try what I’ve built. I was in university and tried with the HMD but unfortunately nothing reallly worked :frowning:
I had two variants to try.

First was the selfmade BP for the wrench which includes the socket etc. I could see in the BP Simulation that the Overlap Event worked but there was no attachment to the hand.

The second one was the PickUp_Cube logic. This one worked but the wrench always snaps to the tip where the pivot of the wrench is.
I also found a thread in the forum ( https://answers.unrealengine.com/que…ml?sort=oldest ) on which you answered but it didn’t work too because of getting an error while compiling.

Here’s where the error appeared:

612e5646d44b9e31e7a81401f2b1d7ef.png

Hand always grabs the wrench at this pivot point.

f50fddd081a022489bdbdf1b3335e423.png

Because I need the Overlap Event to attach the wrench to the hand, I tried a mixture of both but that didn’t work too because I can not connect the ‘Other Actor’ of the Overlap Event to the ‘Parent’ of the AttachToComponent.

Do you have an idea what I’m doing wrong? And why does the wrench snap to the hand at it’s own pivot point? I thought it would snap like I said to it in the Mannequin Hand Mesh building the socket. I also tried changing the BP_MotionController like in the thread of Dec '17.

Another issue was that the VR Hands were very small. Do you know why? Is it because of the World To Meter value?

I’m despairing a little. Can you please help me?

Again thank you very much. Without you I would be stranded :wink: