diff --git a/godot/addons/com.gdquest.godot-steering-ai-framework/Agents/GSAIKinematicBody3DAgent.gd b/godot/addons/com.gdquest.godot-steering-ai-framework/Agents/GSAIKinematicBody3DAgent.gd index d406618..7ba1cc1 100644 --- a/godot/addons/com.gdquest.godot-steering-ai-framework/Agents/GSAIKinematicBody3DAgent.gd +++ b/godot/addons/com.gdquest.godot-steering-ai-framework/Agents/GSAIKinematicBody3DAgent.gd @@ -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