Hi, I have a projectile (RigidBody2D) that shoots over the map and bounces off at the map border (StaticBody2D). The projectile also has a Sprite as child Node.
How can I point/rotate the Sprite into the direction the projectile is moving? I was not able to figure out the direction the projectile is moving. I was able to determine the collision point with the StaticBody2D and then use $Sprite.look_at(collision_point) but then the projectile faces backwards and I don't know how to invert the collision_point position so it will face the moving direction.