---
title: velocityFactor
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnphysicsbody/velocityfactor
---

# velocityFactor

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

## Declaration

```swift
var velocityFactor: SCNVector3 { get set }
```

## Discussion

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

- [physicsShape](scenekit/scnphysicsbody/physicsshape.md)
- [type](scenekit/scnphysicsbody/type.md)
- [SCNPhysicsBodyType](scenekit/scnphysicsbodytype.md)
- [angularVelocityFactor](scenekit/scnphysicsbody/angularvelocityfactor.md)
- [isAffectedByGravity](scenekit/scnphysicsbody/isaffectedbygravity.md)
