playMaker

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

mrminico

  • Full Member
  • ***
  • Posts: 129
Which actions are used to move wheel colliders?
« on: August 27, 2018, 01:05:28 AM »
Hello everyone,

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Which actions are used to move wheel colliders?
« Reply #1 on: August 27, 2018, 02:40:08 AM »
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

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

mrminico

  • Full Member
  • ***
  • Posts: 129
Re: Which actions are used to move wheel colliders?
« Reply #3 on: August 28, 2018, 03: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: 15500
  • Official Playmaker Support
Re: Which actions are used to move wheel colliders?
« Reply #4 on: August 28, 2018, 03: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