Merge pull request 'Update leenkx/Sources/leenkx/logicnode/ApplyForceNode.hx' (#9) from Onek8/LNXSDK:main into main

Reviewed-on: LeenkxTeam/LNXSDK#9
This commit is contained in:
LeenkxTeam 2025-03-28 18:13:48 +00:00
commit 038e5123c9

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