Table of Contents

Struct StaticsShouldntAwakenBodies

Namespace
BepuPhysics
Assembly
BepuPhysics.dll

Awakening filter that prevents any bodies from being awoken by the static's state change.

public struct StaticsShouldntAwakenBodies : 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

bool

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 BodyReference

Sleeping body under consideration for awakening.

Returns

bool

True if the body should be forced awake, false otherwise.