Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: nohailokha on August 19, 2018, 11:50:22 PM

Title: Car steering wheel
Post by: nohailokha on August 19, 2018, 11:50:22 PM
Hey guys .
im stuck in how can i make the car steering wheel rotate in z axis when the car turn left or right !!
Title: Re: Car steering wheel
Post by: Doh on August 20, 2018, 06:05:43 AM
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!
Title: Re: Car steering wheel
Post by: djaydino on August 20, 2018, 10:52:50 AM
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.
 
Title: Re: Car steering wheel
Post by: nohailokha on August 20, 2018, 08:38:17 PM
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
Title: Re: Car steering wheel
Post by: Ayman on August 21, 2018, 11:02:11 AM
Exactly what i m looking for did you fix it ?!!