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

Set of boolean properties of an object. More...

#include <GREM/physics/objects.hpp>

Public Member Functions

constexpr bool operator== (const ObjectFlags &other) const noexcept=default
 Compare these flags to another set of flags for equality.

Public Attributes

bool emitsCollisionEvents: 1
 Emit collision events.
bool emitsSeparationEvents: 1
 Emit separation events.
bool enableResting: 1
 Decay the object's velocity towards 0 on when below the resting threshold.

Detailed Description

Set of boolean properties of an object.

Member Function Documentation

◆ operator==()

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

Compare these flags to another set of flags for equality.

Parameters
otherthe flags to compare these to.
Returns
true if the flags are equal, false otherwise.

Member Data Documentation

◆ emitsCollisionEvents

bool grem::physics::ObjectFlags::emitsCollisionEvents

Emit collision events.

◆ emitsSeparationEvents

bool grem::physics::ObjectFlags::emitsSeparationEvents

Emit separation events.

◆ enableResting

bool grem::physics::ObjectFlags::enableResting

Decay the object's velocity towards 0 on when below the resting threshold.


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