How do I get position of a RigidBody that has mode 3 (Kinematic) set to it?
Seems I can't get_pos of this, nor of the Area. I want to make the captured body move toward the center of Area.
I thought converting it to mode 3 would turn it into KinematicBody, but it's not being recognized as such, it's still RigidBody.
func _on_Area_body_entered(body): $Area.connect("body_entered", self, "_on_body_entered") if captured_crystal == null: captured_crystal = body body.custom_integrator = true body.mode = 3 var direction = (body.get_pos() - $Area.get_pos()).normalized() body.set_pos(body.get_pos() + direction * 5)