111 class SlackCylindricalJointImplementation* 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 two degree of freedom such as Cylindrical.
Helper function to define the reference frame used by the prismatic constraint.
The object defining a frame of reference and providing transformations operations.
The rigid body class, combining a geometric model and a frame of reference.
A constraint that is equal to the.
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
virtual void render(agxRender::RenderManager *mgr, float scale) const override
Internal method used for debug rendering.
SlackCylindricalJoint(RigidBody *rb1, Frame *rb1AttachmentFrame, RigidBody *rb2=nullptr, Frame *rb2AttachmentFrame=nullptr)
Create Cylindrical joint given one or two rigid bodies with corresponding attachment frames.
SlackCylindricalJoint(const CylindricalJointFrame &cf, RigidBody *rb1, RigidBody *rb2=0)
Create Cylindrical joint given a cylindrical joint frame (line defined in world coordinates)
bool setSlackParameters(agx::Vec2 pos_uv, agx::Real rot)
Set slack range parameters.
virtual ~SlackCylindricalJoint()
virtual int getNumDOF() const override
bool getSlackParameters(agx::Vec2 &pos_uv, agx::Real &rot) const
Read the current slack range.
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ref_ptr< SlackCylindricalJoint > SlackCylindricalJointRef