Struct StaticsShouldntAwakenKinematics
- Namespace
- BepuPhysics
- Assembly
- BepuPhysics.dll
Default awakening filter that only wakes up dynamic bodies. Kinematic bodies do not respond to any kind of dynamic simulation, so they won't respond to the change in statics.
public struct StaticsShouldntAwakenKinematics : IStaticChangeAwakeningFilter
- Implements
- Inherited Members
Properties
AllowAwakening
Gets whether to allow awakening for any body. If true, candidates will have the ShouldAwaken function called for them. If false, ShouldAwaken will not be called, and no bodies will be awoken.
public bool AllowAwakening { get; }
Property Value
Methods
ShouldAwaken(BodyReference)
Determines whether a body should be forced awake by the state change of a static.
public bool ShouldAwaken(BodyReference body)
Parameters
body
BodyReferenceSleeping body under consideration for awakening.
Returns
- bool
True if the body should be forced awake, false otherwise.