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