playMaker

Author Topic: Which actions are used to move wheel colliders?  (Read 626 times)

mrminico

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Which actions are used to move wheel colliders?
« on: August 26, 2018, 10:05:28 PM »
Hello everyone,

Does anyone have any idea what actions move and rotate wheel colliders?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14501
  • Official Playmaker Support
    • View Profile
Re: Which actions are used to move wheel colliders?
« Reply #1 on: August 26, 2018, 11:40:08 PM »
Hi,

 Good point, I think people where using SetProperty to access motorTorque and SteerAngle, but that's sub optimal.

 I made the necessary actions on the ecosystem:

SetWheelColliderMotorTorque
setWheelColliderSteerAngle

I also made
GetWheelColliderRpm

use WheelColliderGetWorldPose ( Unity 5 and up) to get the wheel position and rotations and apply it to your visual wheel.

Let me know if all goes well.

Bye,

 Jean

mrminico

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Re: Which actions are used to move wheel colliders?
« Reply #2 on: August 27, 2018, 06:08:01 AM »
Thanks Jean  ;D I'll test it out later and get back to you here.

mrminico

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Re: Which actions are used to move wheel colliders?
« Reply #3 on: August 28, 2018, 12:30:37 AM »
Alright
Hi,

 Good point, I think people where using SetProperty to access motorTorque and SteerAngle, but that's sub optimal.

 I made the necessary actions on the ecosystem:

SetWheelColliderMotorTorque
setWheelColliderSteerAngle

I also made
GetWheelColliderRpm

use WheelColliderGetWorldPose ( Unity 5 and up) to get the wheel position and rotations and apply it to your visual wheel.

Let me know if all goes well.

Bye,

 Jean

Hi,

 Good point, I think people where using SetProperty to access motorTorque and SteerAngle, but that's sub optimal.

 I made the necessary actions on the ecosystem:

SetWheelColliderMotorTorque
setWheelColliderSteerAngle

I also made
GetWheelColliderRpm

use WheelColliderGetWorldPose ( Unity 5 and up) to get the wheel position and rotations and apply it to your visual wheel.

Let me know if all goes well.

Bye,

 Jean


Hello Jean,

I got around to using the torque and steering actions they worked excellently my only issue was getting it to stop but I ended up using set property and found Torque brake. If you can make a Brake torque action whenever you have time that would be nice to have too. As for the wheel collider get world pose action I'm not so sure how to properly use that one all my visual representation of the wheels were rotating out of whack so I guess I have to tinker with that action more.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14501
  • Official Playmaker Support
    • View Profile
Re: Which actions are used to move wheel colliders?
« Reply #4 on: August 28, 2018, 12:38:33 AM »
Hi,

 ok, BrakeTorque on the Ecosystem.

 for the worldPose, you simply point to your wheel gameobject, and it should adjuste to represent the wheelcollider.

 Bye,

 Jean