Hi, im trying to throw rigidbodies in my 3d project , I use a kinematic body player with a raycast to pick up the rigidbody but when i release the button the object just falls straight down with no momentum.
My code:
if Input.is_action_pressed("punch"):
if ray_cast_3d.get_collider():
held_object = ray_cast_3d.get_collider()
if held_object:
held_object.global_transform.origin = hold_position.global_transform.origin
Do I have to add an impulse when I release the "punch" button or is there another way?