How can I make an object bounce indefinitively to the borders of my screen (like a pong ball)?

BangelBangel Posts: 6Member
edited July 16 in 2D

I want to make several objects collide and bounce indefinitively, but I'm struck at the first step : make an object bounce against walls. I've tried to use a RigidBody2D for the "ball"(which move) and a StaticBody2D for the walls but I couldn't go further.
Any idea or suggestions?


  • TwistedTwiglegTwistedTwigleg Posts: 2,831Admin

    Have you tried changing the bounce property in the RigidBody2D properties? Setting to a high value should make it bounce around using Godot's built-in physics.

  • BangelBangel Posts: 6Member

    I did, but it finally stop

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file