 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
129 bool remove(
agx::RigidBody* body,
bool removeAssociatedGeometries =
false,
bool resetParentFrame=
true);
159 bool remove(
Assembly* assembly,
bool resetParentFrame=
true);
346 template <
typename T >
347 T* getConstraint(
const agx::Name& name,
bool recursive =
true);
358 template <
typename T >
359 const T* getConstraint(
const agx::Name& name,
bool recursive =
true)
const;
566 void setLocalPosition(
const agx::Vec3& p );
603 void setLocalRotation(
const agx::Quat& q );
679 virtual void setVelocity(
const agx::Vec3& velocity);
685 virtual void setAngularVelocity(
const agx::Vec3& velocity);
728 bool reset(
bool resetParentFrame =
true);
762 void removeFromSimulation(
Simulation* simulation);
793 return m_frame.
get();
798 return m_frame.
get();
814 bool succeed()
const;
840 virtual void visit(
const Assembly*)
const;
861 template<
typename T >
864 return dynamic_cast< T*
>(this->
getConstraint(name, recursive));
867 template<
typename T >
870 return dynamic_cast< const T*
>(this->
getConstraint(name, recursive));
virtual void visit(const EventListener *) const
virtual void visit(agxSDK::TerrainInstance *)
Specialized types of matrices for holding orthogonal transformation matrices.
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
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...
Specialization for constraints that have two degree of freedom such as Cylindrical.
AGXCORE_EXPORT Type * getType(const agx::String &name)
virtual void removeNotification(Assembly *)
Called when this assembly is removed from another assembly.
An EventListener can be associated to a Simulation and triggered upon various events.
virtual void visit(agxCollide::Geometry *)
virtual void visit(agx::ObserverFrame *)
virtual void visit(const agx::ContactMaterial *) const
const agx::Constraint * getConstraint(const agx::Uuid &uuid, bool recursive=true) const
Find (linear search) and return a pointer to a Constraint with the given uuid.
virtual void visit(agx::ParticleSystem *)
virtual void visit(const agx::ObserverFrame *) const
virtual void visit(EventListener *)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
agx::Constraint1DOF * getConstraint1DOF(const agx::Name &name, bool recursive=true)
#define AGXPHYSICS_EXPORT
virtual void visit(agx::RigidBody *)
Class for visiting all elements in a tree of Assemblies.
virtual void visit(const agxCollide::Geometry *) const
virtual void visit(agx::Constraint *)
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints,...
virtual agx::Frame * getFrame()
Return a reference to the frame containing transformation and velocity information for this assembly.
With this class you can attach an ObserverFrame object relative to a RigidBody.
Type
Specifies the type an assembly is.
A basic particle system that contains all the storages and buffers required for basic operation and a...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
virtual void addNotification(Assembly *)
Called when this assembly is added to another assembly.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
virtual void visit(const agx::MergedBody *) const
virtual void visit(agx::ContactMaterial *)
virtual void visit(const agx::ParticleSystem *) const
agx::SetVector< agx::ref_ptr< agxSDK::Assembly > > AssemblyRefSetVector
The geometry representation used by the collision detection engine.
@ ASSEMBLY
This is a full fledged Assembly which uses Frame for the hierarchy.
virtual void visit(const agxSDK::TerrainInstance *) const
virtual void visit(const agx::Interaction *) const
Representation of a name string.
virtual void visit(const agx::Emitter *) const
This class provides conversion services between Euler angles in any of the 24 conventions and corresp...
virtual void visit(const agx::Constraint *) const
The base class for interactions.
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
agxTerrain::Terrain instance in a simulation, receiving step and contact callbacks in a controllable ...
static Assembly * asAssembly(agxStream::Serializable *obj)
virtual void visit(agx::MergedBody *)
The base class for a constraint.
virtual void visit(agx::Emitter *)
virtual void visit(const agx::RigidBody *) const
void setSucceed(bool flag)
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
#define AGX_ADD_FRAME_TRANSFORM_INTERFACE()
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
The object defining a frame of reference and providing transformations operations.
Structure holding several "normal" rigid bodies.
Spawns new bodys inside a given volume.
agx::Constraint2DOF * getConstraint2DOF(const agx::Name &name, bool recursive=true)
virtual void removeNotification(agxSDK::Simulation *)
Called when this assembly is removed from a simulation.
virtual void visit(agx::Interaction *)