playMaker

Author Topic: Car steering wheel  (Read 907 times)

nohailokha

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Car steering wheel
« 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 !!
« Last Edit: August 20, 2018, 12:09:51 AM by nohailokha »

Doh

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Car steering wheel
« Reply #1 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!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5473
    • View Profile
    • jinxtergames
Re: Car steering wheel
« Reply #2 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.
 

nohailokha

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Re: Car steering wheel
« Reply #3 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

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: Car steering wheel
« Reply #4 on: August 21, 2018, 11:02:11 AM »
Exactly what i m looking for did you fix it ?!!