#Physics problem

1 messages · Page 1 of 1 (latest)

proud spear
#

Im trying to move the ball with animated collision, but the ball doesnt keep its speed after the animation stops. Am I just approaching the whole thing wrong way or how should I do this?

#

Nodes I´m using are AnimatableBody2D and Rigidbody2D(the ball)

next viper
#

Is the animation calling apply_impulse() on the RigidBody or are you just changing its position?

proud spear
#

Just changing position

next viper
#

That would be the issue.
physics can only be handled trough the methods for it, the position is just that, a position.

#

The methods available vary per class, check the docs for the class to see all of them.

Remember that you have the whole documentation in Godot itself with F1