Activity information of an object.
More...
#include <GREM/physics/objects.hpp>
|
| 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.
|
|
| 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.
|
Activity information of an object.
◆ ObjectActivity()
| grem::physics::ObjectActivity::ObjectActivity |
( |
| ) |
|
|
constexprdefaultnoexcept |
Construct the default object activity.
◆ operator==()
| bool grem::physics::ObjectActivity::operator== |
( |
const ObjectActivity & | other | ) |
const |
|
nodiscardconstexprdefaultnoexcept |
Compare this activity information to another for equality.
- Parameters
-
| other | the activity information to compare this one to. |
- Returns
- true if the activity information are equal, false otherwise.
◆ 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: