126 class SlackHingeJointImplementation *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.
The object defining a frame of reference and providing transformations operations.
Specialization for the constraint frame class that add convenient accessors/mutator methods for manip...
The rigid body class, combining a geometric model and a frame of reference.
A constraint that is equal to the.
bool getSlackParameters(agx::Vec3 &pos_uvn, agx::Real &rot) const
Read the current slack parameters.
SlackHingeJoint(const HingeFrame &hf, RigidBody *rb1, RigidBody *rb2=0)
Create hinge given a hinge frame (world coordinates) and one or two rigid bodies.
SlackHingeJoint(RigidBody *rb1, Frame *rb1AttachmentFrame, RigidBody *rb2=nullptr, Frame *rb2AttachmentFrame=nullptr)
Create hinge given attachment frames and one or two rigid bodies.
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
int getNumDOF() const override
SlackHingeJoint()
Default constructor.
bool setSlackParameters(agx::Vec3 pos_uvn, agx::Real rot)
Set slack range parameters.
virtual void render(class agxRender::RenderManager *mgr, float scale) const override
Used internally for debug rendering.
virtual ~SlackHingeJoint()
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ref_ptr< SlackHingeJoint > SlackHingeJointRef
SlackHingeJoint SlackHinge