playMaker

Author Topic: Get World Pose  (Read 3045 times)

treborjones

  • Playmaker Newbie
  • *
  • Posts: 24
Get World Pose
« on: July 20, 2015, 08:09:54 AM »
Hi folks,

Just wondered if anybody knew if the Get World Pose functionality with coliders had been created as an action? I'm trying to get my visual/mesh wheels to rotate with my Wheel colider in unity 5.0.1.

Any help much appreciated.   :)

Bob.
« Last Edit: July 20, 2015, 08:48:00 AM by treborjones »

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 715
    • Flashing Lights
Re: Get World Pose
« Reply #1 on: July 20, 2015, 08:56:01 AM »
Hi, to rotate wheel mesh you can use Get Property for wheel collider and get "rpm", then set that as rotation on wheel mesh gameobjects.

treborjones

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Get World Pose
« Reply #2 on: July 20, 2015, 09:16:05 AM »
Thanks for the response. Isn't there some fancy maths that you need to do with that RPM? I've been trying with that but not getting any sensible values. Was hoping the GetWorldPose would give me a rotational value that I could apply to the mesh wheel.... Might just take a bit more thought from me if the Get World Pose thing isn't an option.

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 715
    • Flashing Lights
Re: Get World Pose
« Reply #3 on: July 20, 2015, 09:20:46 AM »
Yes I multiply rpm with 3.6.
GetWorldPose is a custom action?

treborjones

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Get World Pose
« Reply #4 on: July 20, 2015, 11:40:38 AM »
Its this functionality.

http://docs.unity3d.com/ScriptReference/WheelCollider.GetWorldPose.html

Just wondered if it was usable as a custom action, I'm not quite skilled enough to turn it into one myself. :-)

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 715
    • Flashing Lights
Re: Get World Pose
« Reply #5 on: July 20, 2015, 12:10:58 PM »
Unfortunately no such action at the moment :)