GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::ObjectActivity Struct Reference

Activity information of an object. More...

#include <GREM/physics/objects.hpp>

Public Member Functions

constexpr ObjectActivity () noexcept=default
 Construct the default object activity.
constexpr bool operator== (const ObjectActivity &other) const noexcept=default
 Compare this activity information to another for equality.

Public Attributes

bool isCorrectable: 1 = false
 May be affected by the constraint solver.
bool wasCorrected: 1 = false
 Had a correction impulse applied since the start of the last simulation step where it was active.
bool isActive: 1 = false
 Currently considered active (moving) in the simulation.
uint16_t stepsResting = 0
 Number of consecutive simulation steps that have passed where the object was below resting speed.

Detailed Description

Activity information of an object.

Constructor & Destructor Documentation

◆ ObjectActivity()

grem::physics::ObjectActivity::ObjectActivity ( )
constexprdefaultnoexcept

Construct the default object activity.

Member Function Documentation

◆ operator==()

bool grem::physics::ObjectActivity::operator== ( const ObjectActivity & other) const
nodiscardconstexprdefaultnoexcept

Compare this activity information to another for equality.

Parameters
otherthe activity information to compare this one to.
Returns
true if the activity information are equal, false otherwise.

Member Data Documentation

◆ isCorrectable

bool grem::physics::ObjectActivity::isCorrectable

May be affected by the constraint solver.

◆ wasCorrected

bool grem::physics::ObjectActivity::wasCorrected

Had a correction impulse applied since the start of the last simulation step where it was active.

◆ isActive

bool grem::physics::ObjectActivity::isActive

Currently considered active (moving) in the simulation.

◆ stepsResting

uint16_t grem::physics::ObjectActivity::stepsResting = 0

Number of consecutive simulation steps that have passed where the object was below resting speed.


The documentation for this struct was generated from the following file: