Can someone help me set up PivotInteractable? #11550
Unanswered
s871922003
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, this post is related to another post here: #11175
I was trying to figure out how to create a car steering wheel, originally I try out ObjectManipulator which only allows rotation, but I found that it was a bit different from how the steering wheel works, then I found the PivotInteractable class which comes very close to what I want until I put the steering wheel into a car which itself rotate around all axis while moving up and down and turns.
If I set the AxisConstraintMode to Z, the steering mode will rotate around the Z axis of the world, not its local axis, which will result in something like this:
Original rotation: (0, 0, 0)
https://github.com/microsoft/MixedRealityToolkit-Unity/assets/89058545/07c3fb4c-d54d-4d77-b903-d2aef85015b3
Original rotation: (0, 90, 0)
https://github.com/microsoft/MixedRealityToolkit-Unity/assets/89058545/2a711526-0a13-417a-9e96-f3c8082dbd12
Original rotation: (45, 45, 45)
https://github.com/microsoft/MixedRealityToolkit-Unity/assets/89058545/7973ec63-6814-42f3-9465-63869fe36bf6
Beta Was this translation helpful? Give feedback.
All reactions