How to make something bounce off walls?

Probably very simple but I couldn't figure it out!

I need a cannon ball to bounce off an actor called Wall. What's happening now is that the cannon ball is moving forward because of the Move behavior, but forward relative to the actor, and when it hits the wall it turns and starts going in loops!

How can I make it so that the ball will fire in the direction the cannon is pointing and bounce off walls normally (no gravity btw), without losing any speed?

Comments

  • CrustyDisciplineCrustyDiscipline Member Posts: 2
    Bump, maybe I should clarify a bit more. I want the ball to "reflect" off the wall, but the problem is that the ball is moving with the Move behavior set at 90 degrees relative to the actor (which is forwards), so when it hits the wall it keeps on slamming into it.
  • JarrenHJarrenH Member Posts: 206
    Try looking at the accelerate behavior, instead of the move behavior.
  • CrustyDisciplineCrustyDiscipline Member Posts: 2
    Wow I can't believe I missed that! thanks!
  • UtopianGamesUtopianGames Member Posts: 5,692
    Try playing trials evolution going for platinum that will make things bounce off the walls :)

    Try changing the fixed rotation also.

    Darren.
  • RPRP Member Posts: 1,990
    Sugar, lots of sugar
Sign In or Register to comment.