Fix global_position for KinematicBody3DAgent (#52)
Use `global_transform.origin` instead of `global_position`
This commit is contained in:
parent
49cc6ef696
commit
5b5ca11b03
|
@ -94,7 +94,7 @@ func _apply_position_steering(accel: Vector3, delta: float) -> void:
|
|||
velocity = velocity.linear_interpolate(
|
||||
Vector3.ZERO, linear_drag_percentage
|
||||
)
|
||||
_body.global_position += velocity * delta
|
||||
_body.global_transform.origin += velocity * delta
|
||||
if calculate_velocities:
|
||||
linear_velocity = velocity
|
||||
|
||||
|
|
Loading…
Reference in New Issue