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
bodiesBodiesstaticsStaticssolverSolverbroadPhaseBroadPhasesleeperIslandSleeperpoolBufferPool
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
bodyHandleBodyHandleHandle 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
constraintHandleConstraintHandleHandle 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
setIndexintIndex 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
setIndicesQuickList<int>List of set indices to wake up.
threadDispatcherIThreadDispatcherThread dispatcher to use when waking the bodies. Pass null to run on a single thread.