playMaker

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

intrikit

  • Full Member
  • ***
  • Posts: 132
    • Defiant Child
{SOLVED} Stopping a rigid body from moving.
« on: March 19, 2015, 03: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 20, 2015, 02:49:36 AM by intrikit »

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Stopping a rigid body from moving.
« Reply #1 on: March 19, 2015, 10: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
Re: Stopping a rigid body from moving.
« Reply #2 on: March 19, 2015, 12:05:04 PM »
Set velocity to 0 on the axis of movement?

intrikit

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