playMaker

Author Topic: Center of mass  (Read 2470 times)

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Center of mass
« on: August 27, 2014, 02:13:10 PM »
Hi, I need a tall square to fall from the base and topple over. I found in the scripting api this center of mass for rigidBodies. Anything like this in playmaker?

http://docs.unity3d.com/ScriptReference/Rigidbody-centerOfMass.html
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 718
    • 600
Re: Center of mass
« Reply #1 on: August 27, 2014, 02:48:02 PM »
Hello,
use Get Component action to get the Rigidbody (store it in Object variable UnityEngine.Rigidbody), then Set Property for that Object var, there will be "centerOfMass" in dropdown menu :)

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Center of mass
« Reply #2 on: August 28, 2014, 01:22:40 PM »
Thanks, that did the trick!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez