SteamVR Circular Drive reversing
I am trying to make a car with the steering wheel using the Circular Drive script from SteamVR. However, when the car is turned 180 degrees with the steering wheel, for example, turning to the left, turning the wheel to the left makes it turn right. I actually lost the code but i found a GIF that sums it up perfectly:
The ships wheel starts to turn right although the mouse is being dragged left. This seems to be a glitch with this code in the CircularDrive script:
in: private Vector3 ComputeToTransformProjected( Transform xForm )
=>
toTransformProjected = Vector3.ProjectOnPlane( toTransform, worldPlaneNormal ).normalized;
in: private void ComputeAngle( Hand hand )
=>
float dot = Vector3.Dot( worldPlaneNormal, cross );
Answer by BenParisi · Apr 24, 2019 at 03:25 AM
Hi. Give this a try: https://www.reddit.com/r/Unity3D/comments/apwilt/problem_with_steamvrs_circular_drive_details_in/ Worked for me.
Your answer
Follow this Question
Related Questions
[SteamVR] Object grabbed by left hand is rotated by 180, grabbed with right one is fine. 0 Answers
How to Lock Steam VR camera to the head of the Player model 0 Answers
SteamVR 2.0 how to implement distance grab? 2 Answers
SteamVR 2.2 How to set custom input bindings without having a headset connected? 0 Answers