Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Ayman on August 27, 2018, 12:08:30 PM
-
Hi
how can i make interior car steering wheel rotate with the car turns
Thanks first
-
Hi,
you can either use the Input that you use to control that car to also control the steering wheel
or you use the velocity of the car ( action getSpeed action), which is a vector3, thus giving you the direction, with this direction you can find out the angle compare to the car itself ( using the custom action GetSignedAngleToTarget on the ecosystem) and turn the steering wheel accordingly.
Bye,
Jean
-
Hi Jean
Thanks for your reply what i thinked about is to get the front left wheel rotation and set it to the steering so can you tell me exactly how can i do it ?
Thanks first!
-
from my point of view an animation is best suited for this if you plane to get something stable, and so you'll can rotate the sterringwheel multiple times before it reach it's maximum value, then after that you can blend your animator with the value of the input.
-
Hi,
well, if you just listen to the wheel rotation, you would do the following:
- get the local up axis rotation of the wheel
- multiply that angle by 15 ( https://en.wikipedia.org/wiki/Steering_ratio)
- apply this multiplied angle to your steering wheel
it's pretty straightforward.
Bye,
Jean
-
the problem now is i cant get rotation of the wheel because im using realistic car controller for the car movements and when i turn wheels in playmode , the transform.rotation values is not changing but a new folder appears named steering direction and this folder is who handling the wheel rotation values , but when i quit playmode that folder gone. can you suggest me any other solutions . Im really stuuck . thanks for your time.!!
-
Hi,
You need to check with your realistic car controller how to get the steering wheel input. once you have a snippet or a documentation on this, we can make progress.
Bye,
Jean