 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
54 class LocalContactPoint;
123 Geometry *clone(
bool shallowCopyRenderData=
false )
const;
167 void removeMaterial();
188 agx::Vec3 calculateCenterOfMassOffset()
const;
201 void setEnable(
bool flag );
209 bool isEnabled()
const;
216 bool getEnable()
const;
232 void setSensor(
bool flag,
bool generateContactData =
true);
237 bool isSensor()
const;
243 bool isSensorGeneratingContactData()
const;
250 void setEnableMassProperties(
bool enableMassProperties);
255 bool getEnableMassProperties()
const;
303 void removeAllGroups(
bool forceContactUpdate =
false);
319 bool hasGroup(
const agx::Name& name )
const;
334 const GroupSet& getGroupIDs()
const;
347 bool getEnableCollisions(
const Geometry* otherGeometry )
const;
359 bool getEnableCollisions()
const;
372 bool canCollide(
const Geometry *otherGeometry )
const;
398 bool hasPropertyContainer()
const;
414 const Space* getSpace()
const;
441 void setSurfaceVelocity(
const agx::Vec3f& surfaceVelocity );
452 virtual void updateBoundingVolume();
457 virtual void shapeUpdated();
502 void setLocalPosition(
const agx::Vec3& p );
539 void setLocalRotation(
const agx::Quat& q );
614 bool remove(
Shape *shape );
641 const
Shape *getShape() const;
648 bool setShape(
Shape *shape);
656 bool remove(
size_t index );
675 bool replaceShapeTransform(
size_t shapeIndex, const
agx::
AffineMatrix4x4& newTransform );
690 void cloneShapeRenderData(
agxCollide::
Shape* target,
bool shallowCopy) const;
699 friend class
agx::Emitter;
700 friend class
agx::RigidBody;
702 friend class GeometryGroup;
708 void propagateTransform();
709 void updateFrameStorage();
710 ShapeGroup *createWrapperGroup();
712 void init(const
agx::Name& name);
727 void setSweepAndPruneIndex(
agx::
UInt32 index );
728 void setEntity(
agx::Physics::GeometryPtr entity );
730 void transfer(
agxData::EntityStorage *storage );
732 size_t findShapeIndex(
Shape *shape);
734 void enableCollisionsWithGroup(
agx::
UInt32 groupId);
735 void disableCollisionsWithGroup(
agx::
UInt32 groupId);
738 friend class
agx::InternalData;
742 agx::Referenced* getInternalData() const;
747 void setInternalData(
agx::Referenced* data );
754 agx::RigidBody * m_rigidBody;
762 agx::ref_ptr<
agx::Referenced> m_customData;
763 agx::ref_ptr<
agx::Referenced> m_internalData;
764 agx::observer_ptr<
agx::RigidBody> m_originalBody;
783 return const_cast<Geometry *
>( this )->getShape();
807 return m_entity.state().enabled();
812 return m_entity.state().sensor();
817 return m_entity.state().enableMassProperties();
821 inline bool Geometry::isSensorGeneratingContactData()
const
823 return !m_entity.state().booleanSensor();
828 return m_entity.sweepAndPruneIndex();
833 return CollisionGroupManager::hasGroup(m_entity.collisionGroupSet(),
id);
838 return CollisionGroupManager::hasGroup(m_entity.collisionGroupSet(), name);
843 return m_entity.collisionGroupSet();
848 m_entity.collisionGroupSet() = set;
863 m_entity.surfaceVelocity() = surfaceVelocity;
868 return m_entity.surfaceVelocity();
873 return m_entity.state().enabled();
887 return m_frame.get();
892 return m_frame.get();
897 return &m_entity.boundingAABB();
903 if ( !m_propertyContainer )
905 return m_propertyContainer;
910 return ( m_propertyContainer.isValid() );
915 if ( !m_propertyContainer )
918 return m_propertyContainer;
923 return getSurfaceVelocity();
929 return m_entity.transform();
931 return m_frame->getMatrix();
938 return m_entity.transform().getTranslate();
940 return m_frame->getTranslate();
947 return m_frame->getRotate();
957 return m_internalData;
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a)
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
Specialized types of matrices for holding orthogonal transformation matrices.
agx::SetVector< agx::ref_ptr< agxCollide::Geometry > > GeometryRefSetVector
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
The rigid body class, combining a geometric model and a frame of reference.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT void addGroup(const agx::RigidBody *body, unsigned id)
For the specified body, add the collision group ID to its geometries.
agx::ref_ptr< Frame > FrameRef
ShapeChangeEvent shapeChangeEvent
Axis aligned bounding box implementation.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXPHYSICS_EXPORT
Contains classes for low level data storage for AGX.
Class that is a container of named properties.
#define AGX_DECLARE_VECTOR_TYPES(type)
agx::ref_ptr< Material > MaterialRef
agx::HashSet< const Geometry * > GeometryHashSet
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
AffineMatrix4x4T< Real > AffineMatrix4x4
agx::HashVector< const Geometry *, agx::observer_ptr< const Geometry > > GeometryHashVector
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 geometry representation used by the collision detection engine.
Representation of a name string.
Specialized type of matrices for holding symmetric positive definite matrices.
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
This class provides conversion services between Euler angles in any of the 24 conventions and corresp...
Inheritance with partial specialization due to bug with ref_ptr containers.
Pointer to a entity instance of type Physics.Geometry.
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
AGXPHYSICS_EXPORT void removeGroup(const agx::RigidBody *body, unsigned id)
For the specified body, remove the collision group ID to its geometries.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Collection of geometry group names and id's.
#define AGX_TYPE_BINDING(_Type, _Name)
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API.
Main material class which acts as a holder of a Surface Material and a Bulk material.
agx::Event1< Geometry * > ShapeChangeEvent
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * transformAttribute
void getRotate(T &angle, T &x, T &y, T &z) const
Get the angle and vector components represented by the quaternion.
CollisionGroupManager::GroupIdHash GroupSet
Deprecated: Only for backward compatibility.
The object defining a frame of reference and providing transformations operations.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Pointer to a entity instance of type Physics.CollisionGroupSet.
agx::ref_ptr< PropertyContainer > PropertyContainerRef
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * localTransformAttribute
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.