Bounce Behavior
GDevelop makes it easy to simulate real bouncing in a game. Bounce behavior can be applied to any object that may be involved in a collision. Because the behavior considers the angle and speed of forces applied to the object, the bounce response will feel realistic to the player.
Warning
Learn how to install new extensions by following a step-by-step guide.
Examples
Tip
See it in action! 🎮
Open these examples online.
Breakout-like
What's the logic behind the behavior?
Tip
The behavior looks at the object's position and velocity at the time of the collision. It adds a force in the direction of the normal vector between the collided object and the object, and then adds the difference between the normal vector and the previous angle of movement.