A vector describing both the current rotation axis and rotational speed (in radians per second) of the physics body.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
A positive rotational speed indicates counterclockwise rotation (when viewed from the direction the rotation axis points in).
SceneKit’s physics simulation determines the angular velocity (and corresponding change in rotation) of each dynamic physics body in the scene. You can also set a body’s velocity directly to set the physics simulation in motion or influence its behavior.
The effect of reading or setting this property’s value changes based on the current context:
When invoked within a rendering loop method (any of the methods in the
SCNSceneprotocol), or from any other code invoked from within such a method, reading the property returns the current result of the physics simulation, and setting the property immediately applies the change.
When invoked at any other time, reading the property returns the last value set for the property, and setting the property does not take effect until the next pass through the rendering loop.