#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
Derive from this class to implement a listener for simulation GuiEvents.
agx::MaterialRef m_particleMaterial
agx::RigidBody * getRigidBody()
virtual void removeNotification()
Called when this listener is removed from the simulation.
virtual void reset()
Will detach constraints and reset picked body/geometry.
agx::ConstraintRef m_constraint
virtual void addNotification()
Called when this listener is added to the simulation.
void calculateComplianceAndDamping(agx::LockJoint *constraint, agx::RigidBody *rb)
void calculateComplianceAndDamping(agx::BallJoint *constraint, agx::RigidBody *rb)
bool validate(agx::RigidBody *body)
agx::Vec3 getCurrentWorldMousePoint() const
agxCollide::Geometry * getAttachedGeometry()
agx::Vec3 getWorldAttachmentPoint() const
agx::Vector< PickedParticle > m_particleSet
void calculateComplianceAndDamping(agx::DistanceJoint *constraint, agx::RigidBody *rb)
agxCollide::GeometryRef m_geometry
agx::Physics::ParticlePtr m_particle
virtual PickResult pick(float, float)
agx::RigidBodyRef m_rigidBody
virtual bool updateAttachment(const agx::Vec3 &mousePositionWorld)
Update the attachment point with the mousePositionWorld which is the point of the mouse in world coor...
bool playbackMode() const
bool attachGeometry(const agx::Vec3 &worldPoint, agxCollide::Geometry *geometry, bool useLock=false)
virtual bool attachBody(const agx::Vec3 &worldPoint, agx::RigidBody *body, bool useLock=false, bool updateRotation=false)
Attaches a constraint to the specified body.
agx::Vec3 getLocalAttachmentPoint() const
Constraint that removes the three translation DOF between two bodies (or one and the world).
This joint will preserve the initial distance between a body and a point in world coordinate or betwe...
Constraint that removes all 6 DOF between two bodies, or one body and the world.
Pointer to a entity instance of type Physics.Material.
Pointer to a entity instance of type Physics.Particle.
The rigid body class, combining a geometric model and a frame of reference.
A class holding 4 dimensional vectors and providing basic arithmetic.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
agx::ref_ptr< PickHandler > PickHandlerRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
PickedParticle(agx::Physics::ParticlePtr p)
agx::Physics::MaterialPtr material
agx::Physics::ParticlePtr particle