diff --git a/scene/3d/physics_body_3d.cpp b/scene/3d/physics_body_3d.cpp index c8becc230b2..6b31aa0a3c3 100644 --- a/scene/3d/physics_body_3d.cpp +++ b/scene/3d/physics_body_3d.cpp @@ -1780,7 +1780,7 @@ const Vector3 &CharacterBody3D::get_last_motion() const { } Vector3 CharacterBody3D::get_position_delta() const { - return get_transform().origin - previous_position; + return get_global_transform().origin - previous_position; } const Vector3 &CharacterBody3D::get_real_velocity() const {