Update RemovePhysicsNode.hx
This commit is contained in:
parent
b8ccf404e5
commit
2aedf8256e
|
@ -15,7 +15,7 @@ class RemovePhysicsNode extends LogicNode {
|
|||
|
||||
#if arm_physics
|
||||
var rigidBody = object.getTrait(RigidBody);
|
||||
if (rigidBody != null) rigidBody.remove();
|
||||
rigidBody.remove();
|
||||
#end
|
||||
|
||||
runOutput(0);
|
||||
|
|
Loading…
Reference in a new issue