Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: nohailokha on August 20, 2018, 02:50:22 AM
-
Hey guys .
im stuck in how can i make the car steering wheel rotate in z axis when the car turn left or right !!
-
The question is a little vague to answer in any detail, however I'd suggest you work out if you need to rotate it using the animator or in playmaker itself.
If you choose the animator then have a read up on sending variables between playmaker and the animator.
If you choose to do it all in playmaker then you'll need to look into taking the data you have (control input, AI etc) and making the data drive your streering wheel rotation.
Best of luck!
-
Hi.
You could get the angularVelocity from the car to determine speed for the steering wheel position.
and you could setup something like :
get current rotation / next frame / get new location
if current new location is greater/less than car is turning left/right.
to set the wheel rotation in the negative or positive direction.
Loop back to get current rotation again.
-
thaks for your reply but i didnt understand what should cause im new to playmaker
can you tell me exactly what should i do or what actions should i use
-
Exactly what i m looking for did you fix it ?!!