Table of Contents

Class IslandAwakener

Namespace
BepuPhysics
Assembly
BepuPhysics.dll

Provides functionality for efficiently waking up sleeping bodies.

public class IslandAwakener
Inheritance
IslandAwakener
Inherited Members

Constructors

IslandAwakener(Bodies, Statics, Solver, BroadPhase, IslandSleeper, BufferPool)

public IslandAwakener(Bodies bodies, Statics statics, Solver solver, BroadPhase broadPhase, IslandSleeper sleeper, BufferPool pool)

Parameters

bodies Bodies
statics Statics
solver Solver
broadPhase BroadPhase
sleeper IslandSleeper
pool BufferPool

Methods

AwakenBody(BodyHandle)

Wakes up a body if it is sleeping. All bodies that can be found by traversing the constraint graph from the body will also be awakened. If the body is already awake, this does nothing.

public void AwakenBody(BodyHandle bodyHandle)

Parameters

bodyHandle BodyHandle

Handle of the body to awaken.

AwakenConstraint(ConstraintHandle)

Wakes up any sleeping bodies associated with a constraint. All bodies that can be found by traversing the constraint graph from the constraint referenced bodies will also be awakened. If all bodies associated with the constraint are already awake, this does nothing.

public void AwakenConstraint(ConstraintHandle constraintHandle)

Parameters

constraintHandle ConstraintHandle

Handle of the constraint to awaken.

AwakenSet(int)

Wakes up all bodies and constraints within a set. Doesn't do anything if the set is awake (index zero).

public void AwakenSet(int setIndex)

Parameters

setIndex int

Index of the set to awaken.

AwakenSets(ref QuickList<int>, IThreadDispatcher)

Awakens a list of set indices.

public void AwakenSets(ref QuickList<int> setIndices, IThreadDispatcher threadDispatcher = null)

Parameters

setIndices QuickList<int>

List of set indices to wake up.

threadDispatcher IThreadDispatcher

Thread dispatcher to use when waking the bodies. Pass null to run on a single thread.