Skip to content

Class PhysicsOptions

Namespace: Apogee.Physics
Assembly: Apogee.Physics.dll

How a is made. The defaults suit heavy vehicles on a large map.

public sealed class PhysicsOptions

Inheritance

object ← PhysicsOptions

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

EventCapacity

How many contact and activation events one step can queue before the rest is dropped (counted in ).

public int EventCapacity { get; init; }

Property Value

int

Gravity

public Vector3 Gravity { get; init; }

Property Value

Vector3

Interpolate

Show the bodies between the last two steps instead of at the last one, so motion is smooth at any frame rate (see ).

public bool Interpolate { get; init; }

Property Value

bool

MaxBodies

The most bodies the world holds (Jolt allocates for them up front).

public int MaxBodies { get; init; }

Property Value

int

MaxBodyPairs

public int MaxBodyPairs { get; init; }

Property Value

int

MaxContactConstraints

public int MaxContactConstraints { get; init; }

Property Value

int

MaxSubsteps

The most steps one runs: a slow frame slows the simulation down instead of spiralling.

public int MaxSubsteps { get; init; }

Property Value

int

PositionSteps

Position solver iterations per step (Jolt's default is 2).

public int PositionSteps { get; init; }

Property Value

int

StepRate

Fixed steps per second. Results depend on it, so a game picks one and keeps it.

public int StepRate { get; init; }

Property Value

int

TempBufferBytes

Memory Jolt takes for the working data of one update.

public int TempBufferBytes { get; init; }

Property Value

int

ThreadCount

Worker threads of the job system; 0 uses one less than the machine has (at least one). The results do not depend on it.

public int ThreadCount { get; init; }

Property Value

int

VelocitySteps

Velocity solver iterations per step (Jolt's default is 10).

public int VelocitySteps { get; init; }

Property Value

int