playMaker

Author Topic: {SOLVED} Stopping a rigid body from moving.  (Read 1132 times)

intrikit

  • Full Member
  • ***
  • Posts: 132
    • View Profile
    • Defiant Child
{SOLVED} Stopping a rigid body from moving.
« on: March 19, 2015, 12:08:15 AM »
Hello,

I have rollers which the player can roll while stepping on in order to get past obstacles. When the player dies, I created an FSM so that the rollers go back to its original placement so that the player can try again. However, if the player dies while the roller is still in motion, it continues to move after the "Set Position" action is executed. The issue is better explained by this video:


Does anyone have any suggestions as to how to get around this? Thanks a lot!
« Last Edit: March 19, 2015, 11:49:36 PM by intrikit »

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Stopping a rigid body from moving.
« Reply #1 on: March 19, 2015, 07:15:59 AM »
how about putting it to sleep. That might work.
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

cgmonkey

  • Playmaker Newbie
  • *
  • Posts: 15
    • View Profile
Re: Stopping a rigid body from moving.
« Reply #2 on: March 19, 2015, 09:05:04 AM »
Set velocity to 0 on the axis of movement?

intrikit

  • Full Member
  • ***
  • Posts: 132
    • View Profile
    • Defiant Child
Re: Stopping a rigid body from moving.
« Reply #3 on: March 19, 2015, 11:49:18 PM »
Sleep works! Thanks!