x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

I want to make a steering wheel in VR that is interactable via Motion Controllers. How can I do this?

Hello!

I am trying to make a steering wheel in VR that can do the following -

  1. Be grabbed by a player using motion controllers, using physics handles

  2. Based on the wheel's rotation, get a value of -1 to 1, or 0 to 1

  3. Constrain the wheel's rotation so it can't rotate too far

Is this possible? How can I do it using the VR template?

Product Version: UE 4.13
Tags:
more ▼

asked Nov 14 '16 at 08:15 AM in Blueprint Scripting

avatar image

Tdore
16 6 5 6

avatar image ted_o_brian Nov 14 '16 at 08:37 AM

Grabbing things in VR that are not freely movable is tricky.

  1. I'd make it so the player needs to hold the trigger near the wheel to snap their hands to the wheel and then rotate the wheel based on the movement of the hands (= delta rotation around the center of the wheel) to rotate the steering wheel accordingly.

  2. Just map the axis that is facing away from the wheel to a range of -1 to 1 by dividing it by 180 and maybe throw a modulo in there.

  3. As you know now how far it has rotated (delta rotation), just limit the rotation at your desired cap. This is where it will feel weird in VR though, as you will feel no real limit and the virtual steering wheel will just stop.

Hope this will get you on the right track.

avatar image lailalelouch Apr 26 '17 at 03:18 PM

I'm facing a similar problem..so, if you don't mind me asking, for the first point, would I take the location of the controller with event tick and then make a rotator from XY and add that rotator to the current rotation of the wheel??

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question