Edit

Share via


SKPhysicsWorld.Speed Property

Definition

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.

Applies to