clearAllForces()
Cancels all continuous forces and torques acting on the physics body during the current simulation step.
Declaration
func clearAllForces()Discussion
When you pass false for the impulse parameter in the applyForce(_:asImpulse:), applyForce(_:at:asImpulse:), or applyTorque(_:asImpulse:) method, SceneKit waits until the end of the current simulation step before applying its effect. At that time, SceneKit sums all forces and torques applied during that simulation step and changes the velocity or angular velocity of the body according to the net effect of those forces and torques.
Call clearAllForces() to cancel any forces and torques previously applied during the current simulation step.