mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #78727 from rburing/really_velocity
Fix CharacterBody3D `get_position_delta()` and `get_real_velocity()`
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user