Class PhysicsOptions¶
Namespace: Apogee.Physics
Assembly: Apogee.Physics.dll
How a
public sealed class PhysicsOptions
Inheritance¶
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¶
Gravity¶
public Vector3 Gravity { get; init; }
Property Value¶
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¶
MaxBodies¶
The most bodies the world holds (Jolt allocates for them up front).
public int MaxBodies { get; init; }
Property Value¶
MaxBodyPairs¶
public int MaxBodyPairs { get; init; }
Property Value¶
MaxContactConstraints¶
public int MaxContactConstraints { get; init; }
Property Value¶
MaxSubsteps¶
The most steps one
public int MaxSubsteps { get; init; }
Property Value¶
PositionSteps¶
Position solver iterations per step (Jolt's default is 2).
public int PositionSteps { get; init; }
Property Value¶
StepRate¶
Fixed steps per second. Results depend on it, so a game picks one and keeps it.
public int StepRate { get; init; }
Property Value¶
TempBufferBytes¶
Memory Jolt takes for the working data of one update.
public int TempBufferBytes { get; init; }
Property Value¶
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¶
VelocitySteps¶
Velocity solver iterations per step (Jolt's default is 10).
public int VelocitySteps { get; init; }