Table of Contents

Struct Static

Namespace
BepuPhysics
Assembly
BepuPhysics.dll

Stores data for a static collidable in the simulation. Statics can be posed and collide, but have no velocity and no dynamic behavior.

public struct Static
Inherited Members

Remarks

Unlike bodies, statics have a very simple access pattern. Most data is referenced together and there are no extreme high frequency data accesses like there are in the solver. Everything can be conveniently stored within a single location contiguously.

Fields

BroadPhaseIndex

Index of the collidable in the broad phase. Used to look up the target location for bounding box scatters. Under normal circumstances, this should not be set externally.

public int BroadPhaseIndex

Field Value

int

Continuity

Continuous collision detection settings for this collidable. Includes the collision detection mode to use and tuning variables associated with those modes.

public ContinuousDetection Continuity

Field Value

ContinuousDetection

Remarks

Note that statics cannot move, so there is no difference between Discrete and Passive for them. Enabling Continuous will still require that pairs associated with the static use swept continuous collision detection.

Pose

Pose of the static collidable.

public RigidPose Pose

Field Value

RigidPose

Shape

Index of the shape used by the static. While this can be changed, any transition from shapeless->shapeful or shapeful->shapeless must be reported to the broad phase. If you need to perform such a transition, consider using SetShape(StaticHandle, TypedIndex) or Statics.ApplyDescription; those functions update the relevant state.

public TypedIndex Shape

Field Value

TypedIndex