playMaker

Author Topic: interior car steering wheel rotation  (Read 1546 times)

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
interior car steering wheel rotation
« on: August 27, 2018, 12:08:30 PM »
Hi
 how can i make interior car steering wheel rotate with the car turns
Thanks first

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: interior car steering wheel rotation
« Reply #1 on: August 28, 2018, 03:55:03 AM »
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

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
Re: interior car steering wheel rotation
« Reply #2 on: August 28, 2018, 07:36:33 AM »
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!

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: interior car steering wheel rotation
« Reply #3 on: August 28, 2018, 04:28:10 PM »
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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: interior car steering wheel rotation
« Reply #4 on: August 29, 2018, 02:24:14 AM »
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

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
Re: interior car steering wheel rotation
« Reply #5 on: August 29, 2018, 06:30:31 PM »
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.!!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: interior car steering wheel rotation
« Reply #6 on: August 30, 2018, 01:55:57 AM »
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