SKPhysicsWorld.Speed Property


The rate at which the physics simulation runs.

[get: Foundation.Export("speed")]
[set: Foundation.Export("setSpeed:")]
public virtual nfloat Speed { get; set; }
member this.Speed : nfloat with get, set

Property Value

The default value is 1.0. A value of 0.0 pauses the simulation.



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.

Applies to