#How to rotate a RigidBody2D to point to the mouse?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
I'm trying to create a game like Stick Fight: The Game, I already have some movements, but I need to point the stickman's arms to the mouse while the arms are RigidBodies. I think I need to set a rotation to the mouse, but I dont know how to calculate the desired angle.
you should be able to use the "look_at()" function
I've tried this, but the behavior is so weird