playMaker

Author Topic: Car steering wheel  (Read 1626 times)

nohailokha

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

Doh

  • Full Member
  • ***
  • Posts: 124
Re: Car steering wheel
« Reply #1 on: August 20, 2018, 09: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: 7615
    • jinxtergames
Re: Car steering wheel
« Reply #2 on: August 20, 2018, 01:52:50 PM »
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
Re: Car steering wheel
« Reply #3 on: August 20, 2018, 11: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
Re: Car steering wheel
« Reply #4 on: August 21, 2018, 02:02:11 PM »
Exactly what i m looking for did you fix it ?!!