17 #ifndef AGX_DISTANCEJOINT_H
18 #define AGX_DISTANCEJOINT_H
109 class DistanceJointImplementation *m_implementation;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
This joint will preserve the initial distance between a body and a point in world coordinate or betwe...
virtual Real getDamping(agx::UInt index) const override
DistanceJoint(RigidBody *rb1, Frame *rb1AttachmentFrame, const Vec3 &worldAttach)
Create a Distance joint given an attachment frame on a rigid body and a fixed point (in world).
virtual Real getCompliance(agx::UInt index) const override
virtual RegularizationParameters * getRegularizationParameters(agx::UInt i) override
This is a 1D constraint, i.e., only index i = 0 is valid.
DistanceJoint(RigidBody *rb1, const Vec3 &localAttachRB1, RigidBody *rb2, const Vec3 &localAttachRB2)
Create a Distance joint given two rigid bodies and local attachment points.
virtual void render(agxRender::RenderManager *mgr, float scale) const override
Internal method used for debug rendering.
DistanceJoint(RigidBody *rb1, const Vec3 &localAttachRB1, const Vec3 &worldAttach)
Create a Distance joint given one rigid body, a local attach point and a world attach point.
virtual void setCompliance(Real compliance, agx::Int index=-1) override
Set compliance for this distance joint.
virtual int getNumDOF() const override
DistanceJoint(RigidBody *rb1, Frame *rb1AttachmentFrame, RigidBody *rb2, Frame *rb2AttachmentFrame)
Create a Distance joint given attachment frames and two rigid bodies.
virtual const RegularizationParameters * getRegularizationParameters(agx::UInt i) const override
virtual void setDamping(Real damping, agx::Int index=-1) override
Set damping for this distance joint.
The object defining a frame of reference and providing transformations operations.
All ghost variables have compliance and damping attributes.
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ref_ptr< DistanceJoint > DistanceJointRef