SKPhysicsWorld.Speed Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The rate at which the physics simulation runs.
public virtual nfloat Speed { [Foundation.Export("speed")] get; [Foundation.Export("setSpeed:")] set; }
member this.Speed : nfloat with get, set
Property Value
The default value is 1.0. A value of 0.0 pauses the simulation.
- Attributes
Remarks
This is a multiplier for the rate at which time passes in the physics simulation. For instance, a value of 2.0 will cause the physics to run twice as fast, while a value of 0.5 will halve the rate.