23 class MergeSplitProperties;
34 BOTH_ARE_NULL = 1 << 1,
36 BOTH_ARE_VALID = 1 << 3,
37 MERGED_BODIES_ARE_SAME = 1 << 4,
38 MERGED_BODIES_ARE_DIFFERENT = 1 << 5,
39 WIRE_BODY_INCLUDED = 1 << 6,
40 GRANULATE_BODY_INCLUDED = 1 << 7
42 typedef agx::BitState< EState, agx::Int32 >
State;
50 typedef agx::BitState< ActionType, agx::Int16 >
Actions;
76 State getState()
const;
81 Actions getAllowedActions()
const;
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
const agxSDK::MergeSplitProperties * getConstraintProperties() const
static ConstraintMergedState invalid()
Creates an invalid merged state.
const agxSDK::MergeSplitProperties * m_constraintProperties
ConstraintMergedState(const agx::HighLevelConstraintImplementation *constraint, const agxSDK::MergeSplitHandler *handler)
Find merged state given constraint.
Base class for a merge split algorithm handling a set of merged bodies.
Object holding merged bodies and state given a pair of rigid bodies.
agx::BitState< EState, agx::Int32 > State
MergedState(agxCollide::Geometry *geometry1, agxCollide::Geometry *geometry2, const agxSDK::MergeSplitHandler *handler)
Find merged state given two geometries.
agx::Bool isValid() const
static MergedState invalid()
Creates an invalid merged state.
const agxSDK::MergeSplitProperties * getProperties2() const
const agxSDK::MergeSplitProperties * getProperties1() const
agx::Bool firstIsMerged() const
agx::MergedBody * getMergedBody2() const
agx::BitState< ActionType, agx::Int16 > Actions
agx::Bool secondIsMerged() const
agx::MergedBody * m_preferredMergedBody
agx::RigidBody * getRigidBody1() const
MergedState(agx::RigidBody *rb1, agx::RigidBody *rb2, const agxSDK::MergeSplitHandler *handler)
Find merged state given two rigid bodies.
agx::MergedBody * getMergedBody() const
agx::MergedBody * getMergedBody1() const
agx::RigidBody * getRigidBody2() const
MergedState & update()
Update the current state of how the bodies are merged and return this.
Actions getAllowedActions() const
void construct(agx::RigidBody *rb1, agx::RigidBody *rb2)
Delegating constructor.
agx::MergedBody * getOtherMergedBody() const
Structure holding several "normal" rigid bodies.
The rigid body class, combining a geometric model and a frame of reference.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...