Merge pull request 'Update leenkx/Sources/leenkx/logicnode/ApplyForceNode.hx' (#9) from Onek8/LNXSDK:main into main
Reviewed-on: #9
This commit is contained in:
commit
038e5123c9
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user