Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: intrikit on March 19, 2015, 03:08:15 AM

Title: {SOLVED} Stopping a rigid body from moving.
Post by: intrikit 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!
Title: Re: Stopping a rigid body from moving.
Post by: sebaslive on March 19, 2015, 10:15:59 AM
how about putting it to sleep. That might work.
Title: Re: Stopping a rigid body from moving.
Post by: cgmonkey on March 19, 2015, 12:05:04 PM
Set velocity to 0 on the axis of movement?
Title: Re: Stopping a rigid body from moving.
Post by: intrikit on March 20, 2015, 02:49:18 AM
Sleep works! Thanks!