0 votes

Hi,

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

in Projects by (20 points)
edited by

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?

Hi,

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

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories