Contents

angularVelocityFactor

A multiplier affecting how SceneKit applies rotations computed by the physics simulation to the node containing the physics body.

Declaration

var angularVelocityFactor: SCNVector3 { get set }

Discussion

Use this property to constrain or restrict the effect of physics simulation on the node containing the physics body. For example, you can force a body to rotate in only one axis by setting its angular velocity factor to {0.0, 1.0, 0.0}.

See Also

Defining How Forces Affect a Physics Body