Is Object Resting

Pure
IsObjectResting

Checks if a physics object has effectively come to rest (linear and angular velocity below thresholds).

Type: Pure (no side effects)
Category: Fortuna|Physics & Collision
Keywords: physics & collision

Inputs

NameTypeDefaultDescription
ComponentUPrimitiveComponent*Component parameter
VelocityThresholdfloat1.0VelocityThreshold parameter
AngularThresholdfloat1.0AngularThreshold parameter

Outputs

NameTypeDescription
ReturnValueboolReturnValue output

Example Use Cases

Example 1

Detect when a thrown die has stopped rolling.

Example 2

Know when a physics puzzle piece has settled.