Contents

velocityFactor

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

Declaration

var velocityFactor: 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 move in only two dimensions by setting its velocity factor to {1.0, 1.0, 0.0}.

See Also

Defining How Forces Affect a Physics Body