Skip to content

PhysicsWorld.SubStepCount Property

Definition

Namespace: Brine2D.Physics

Number of Box2D sub-steps per fixed-update tick. Higher values improve simulation accuracy for fast-moving bodies at the cost of CPU time. Default is 4.

public int SubStepCount { get; set; }

Property Value

System.Int32

Exceptions

System.ArgumentOutOfRangeException
Thrown when set to less than 1.