[Solved] How to get the object bouce without rolling?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By CrinstalMaiden


Im learning Godot Engine and making a small project which features a ball (or a square) bounce from ground, but keeping the x position.

When I tried set_bounce() , it results in the ball and even the square to roll and following x position being shifted.

I also tried manual bounce by connect the object to body_entered signal and make the object move by the y position. However, the result is also the same.

Could you please show me how to do it without rolling and x-shifting? Thank you

What do you mean? Do you want the ball to jump perfectly upwards upon contact with the floor, no matter at what angle it collided?

selamba | 2019-12-13 23:04


I found that I did not check the RigidBody2D as character. Thank you for your comment :stuck_out_tongue:

CrinstalMaiden | 2019-12-15 17:32