How to make the player carry and throw a rigidBody

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

I need the player in a top-down game to go and carry a object, which is a RigidBody2D and throw it. When I use rigidbodyobject.global_position = player.global_position the sprite of the body moves with the player but the actual rigid body stays in its original place. And when I apply impulse to the body the sprite resets to the original position and impulse is applied there. Can anyone please help me?

can you give a some code? The project-folder would be better :wink:

whiteshampoo | 2020-05-27 16:41