How to completely stop my actor when it collides with a wall

Hi, I am having trouble to make a train stop once it collides with a wall. I first used "accelerate" function to make it move into a scene, and then I built a wall and used "change velocity" function to change its speed to 0 once it hits the wall. However, it did not stop completely. Instead, it slowed down but then continued moving through the wall and left the scene. I searched the forum but could not find a similar problem like this. I would appreciate it if you could help me solve this problem. Thanks!

Comments

  • PandaParentsPandaParents Member Posts: 64
    Thank you Socks! The color changing of the balls look really nice
  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2014
    @PandaParents
    Thank you Socks! The color changing of the balls look really nice
    Glad it helped you out.
  • PandaParentsPandaParents Member Posts: 64
    Hi, Socks, I followed yours and got it work, but when I did on my train and made it bounce when it collided the wall, the train didn't stop. It moved back and forth. I checked your file again and didn't see any other rules for the ball to stop. The only other rules you had were used to fade the balls' color and then destroy them. Do you know how to make the train stop if I don't want to fade the color and destroy it? Thanks!
  • SocksSocks London, UK.Member Posts: 12,822
    @PandaParents
    Hi, Socks, I followed yours and got it work, but when I did on my train and made it bounce when it collided the wall, the train didn't stop. It moved back and forth. I checked your file again and didn't see any other rules for the ball to stop. The only other rules you had were used to fade the balls' color and then destroy them. Do you know how to make the train stop if I don't want to fade the color and destroy it? Thanks!
    Turn the 'bounciness' down to 0 on the train actor and the wall actor.
  • PandaParentsPandaParents Member Posts: 64
    It worked and so simple. Thanks, Socks!
Sign In or Register to comment.