Update leenkx/Sources/leenkx/logicnode/ApplyForceNode.hx

This commit is contained in:
Onek8 2025-03-28 18:12:17 +00:00
parent 76d79e6e18
commit b5575e5a48

View File

@ -21,7 +21,7 @@ class ApplyForceNode extends LogicNode {
#if lnx_physics
var rb: RigidBody = object.getTrait(RigidBody);
if (rb == null) return;
!local ? rb.applyForce(force) : rb.applyForce(object.transform.worldVecToOrientation(force));
#end