44 class MergeSplitBodyStorage;
52 class LocalContactPoint;
164 void removeMaterial();
185 agx::Vec3 calculateCenterOfMassOffset()
const;
198 void setEnable(
bool flag );
206 bool isEnabled()
const;
213 bool getEnable()
const;
229 void setSensor(
bool flag,
bool generateContactData =
true);
234 bool isSensor()
const;
240 bool isSensorGeneratingContactData()
const;
288 void removeAllGroups(
bool forceContactUpdate =
false);
304 bool hasGroup(
const agx::Name& name )
const;
312 const GroupSet& getGroupIDs()
const;
322 bool getEnableCollisions(
const Geometry* otherGeometry )
const;
334 bool getEnableCollisions()
const;
347 bool canCollide(
const Geometry *otherGeometry )
const;
373 bool hasPropertyContainer()
const;
389 const Space* getSpace()
const;
428 void setSurfaceVelocity(
const agx::Vec3f& surfaceVelocity );
439 virtual void updateBoundingVolume();
444 virtual void shapeUpdated();
489 void setLocalPosition(
const agx::Vec3& p );
526 void setLocalRotation(
const agx::Quat& q );
601 bool remove(
Shape *shape );
628 const
Shape *getShape() const;
635 bool setShape(
Shape *shape);
643 bool remove(
size_t index );
654 bool replace(
Shape *oldShape,
Shape *newShape, const agx::AffineMatrix4x4& localTransform = agx::AffineMatrix4x4());
662 bool replaceShapeTransform(
size_t shapeIndex, const agx::AffineMatrix4x4& newTransform );
670 bool replaceShapeTransform(
Shape *shape, const agx::AffineMatrix4x4& newTransform );
684 MergeSplitProperties();
687 void setEnableSplit(
bool flag );
690 bool getEnableSplit( )
const;
695 void setEnableMerge(
bool flag );
699 bool getEnableMerge( )
const;
706 void setForceSplitInPreStep(
bool flag );
710 bool getForceSplitInPreStep( )
const;
738 friend class GeometryGroup;
741 friend class agxCollide::ShapeGroup;
744 void propagateTransform();
745 void updateFrameStorage();
746 ShapeGroup *createWrapperGroup();
773 size_t findShapeIndex(
Shape *shape);
775 void enableCollisionsWithGroup(
agx::UInt32 groupId);
776 void disableCollisionsWithGroup(
agx::UInt32 groupId);
779 friend class agx::InternalData;
788 void setInternalData( agx::
Referenced* data );
795 agx::RigidBody * m_rigidBody;
800 mutable GeometryHashVector m_disabledCollisionsHash;
805 agx::observer_ptr<agx::RigidBody> m_originalBody;
825 return const_cast<Geometry *
>( this )->getShape();
849 return m_entity.state().enabled();
854 return m_entity.state().sensor();
857 inline bool Geometry::isSensorGeneratingContactData()
const
859 return !m_entity.state().booleanSensor();
864 return m_entity.sweepAndPruneIndex();
869 return CollisionGroupManager::hasGroup(m_entity.collisionGroupSet(),
id);
874 return CollisionGroupManager::hasGroup(m_entity.collisionGroupSet(), name);
879 return m_entity.collisionGroupSet();
894 m_entity.surfaceVelocity() = surfaceVelocity;
899 return m_entity.surfaceVelocity();
904 m_originalBody = body;
909 return m_originalBody.get() ? m_originalBody.get() : m_rigidBody;
914 return m_originalBody.get() ? m_originalBody.get() : m_rigidBody;
919 return m_entity.state().enabled();
933 return m_frame.get();
938 return m_frame.get();
943 return &m_entity.boundingAABB();
949 if ( !m_propertyContainer )
951 return m_propertyContainer;
956 return ( m_propertyContainer.isValid() );
961 if ( !m_propertyContainer )
964 return m_propertyContainer;
969 return getSurfaceVelocity();
974 return m_msProperties;
978 return m_msProperties;
983 m_flags[ENABLE_SPLIT] = flag;
987 return m_flags[ENABLE_SPLIT];
992 m_flags[ENABLE_MERGE] = flag;
997 return m_flags[ENABLE_MERGE];
1002 m_flags[FORCE_SPLIT_IN_PRE] = flag;
1007 return m_flags[FORCE_SPLIT_IN_PRE];
1014 return m_entity.transform();
1016 return m_frame->getMatrix();
1023 return m_entity.transform().getTranslate();
1025 return m_frame->getTranslate();
1031 return m_entity.transform().
getRotate();
1032 return m_frame->getRotate();
1042 return m_internalData;
void AGXPHYSICS_EXPORT init()
Initialize agx.
Inheritance with partial specialization due to bug with ref_ptr containers.
AffineMatrix4x4T< Real > AffineMatrix4x4
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
Data storage for a collection of entity instances of a specified EntityModel.
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
#define AGX_TYPE_BINDING(_Type, _Name)
#define AGXPHYSICS_EXPORT
agx::HashVector< const Geometry *, agx::observer_ptr< const Geometry > > GeometryHashVector
agx::ref_ptr< Frame > FrameRef
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * localTransformAttribute
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
agx::Event1< Geometry * > ShapeChangeEvent
Pointer to a entity instance of type Physics.CollisionGroupSet.
agx::ref_ptr< Material > MaterialRef
Base class providing referencing counted objects.
ShapeChangeEvent shapeChangeEvent
The geometry representation used by the collision detection engine.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
AGXPHYSICS_EXPORT void addGroup(const agx::RigidBody *body, unsigned id)
For the specified body, add the collision group ID to its geometries.
This class provides conversion services between Euler angles in any of the 24 conventions and corresp...
Class that is a container of named properties.
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
Pointer to a entity instance of type Physics.Geometry.
Collection of geometry group names and id's.
Specialized type of matrices for holding symmetric positive definite matrices.
void getRotate(T &angle, T &x, T &y, T &z) const
Get the angle and vector components represented by the quaternion.
agx::HashSet< const Geometry * > GeometryHashSet
Specify MergeSplit properties for a Geometry.
The rigid body class, combining a geometric model and a frame of reference.
Main material class which acts as a holder of a Surface Material and a Bulk material.
Book keeping of a body which can be merged with other bodies.
AGXPHYSICS_EXPORT bool setEnableCollisions(agx::RigidBody *rb1, agx::RigidBody *rb2, bool enable)
Enable or disable the collision between all geometries in RigidBody rb1 and RigidBody rb2...
The object defining a frame of reference and providing transformations operations.
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * transformAttribute
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
AGXPHYSICS_EXPORT void removeGroup(const agx::RigidBody *body, unsigned id)
For the specified body, remove the collision group ID to its geometries.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
CollisionGroupManager::GroupIdHash GroupSet
Deprecated: Only for backward compatibility.
#define AGX_DECLARE_VECTOR_TYPES(type)
Axis aligned bounding box implementation.
Referenced()
Default constructor.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.
Specialized types of matrices for holding orthogonal transformation matrices.