17 #ifndef AGX_GEOMETRYSTATE_H 18 #define AGX_GEOMETRYSTATE_H 39 BOOLEAN_SENSOR_BIT = 4
46 bool shouldCollide()
const;
49 bool booleanSensor()
const;
50 bool sensorAndBooleanSensor()
const;
53 friend class Geometry;
55 void setEnabled(
bool flag);
56 void setRemoved(
bool flag);
57 void setShouldCollide(
bool flag);
58 void setSensor(
bool flag);
59 void setBooleanSensor(
bool flag);
74 return this->test(ENABLE_BIT);
79 return this->test(REMOVED_BIT);
84 return this->test(CAN_COLLIDE_BIT);
87 inline bool GeometryState::sensor()
const 89 return this->test(SENSOR_BIT);
92 inline bool GeometryState::booleanSensor()
const 94 return this->test(BOOLEAN_SENSOR_BIT);
97 inline bool GeometryState::sensorAndBooleanSensor()
const 99 return this->sensor() && this->booleanSensor();
104 this->
set(ENABLE_BIT,flag);
109 this->
set(REMOVED_BIT,flag);
114 this->
set(CAN_COLLIDE_BIT,flag);
117 inline void GeometryState::setSensor(
bool flag)
119 this->
set(SENSOR_BIT, flag);
122 inline void GeometryState::setBooleanSensor(
bool flag)
124 this->
set(BOOLEAN_SENSOR_BIT, flag);
agxCollide namespace consists of a set of classes for handling geometric intersection tests including...
#define AGX_TYPE_BINDING(_Type, _Name)
Special class for small bitset, because minimum bitset size in clang/gcc is 8 bytes, and we only need 4.
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()