17 #ifndef AGX_CYLINDRICAL_JOINT_H
18 #define AGX_CYLINDRICAL_JOINT_H
115 class CylindricalJointImplementation* 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.
DOF
Specifies a selected degree of freedom.
Helper function to define the reference frame used by the prismatic constraint.
void setPoint(const Vec3 &point)
Provide a point lying on the axis.
CylindricalJointFrame()
Default constructor.
void setAxis(const Vec3 &axis)
Set the translational axis.
const Vec3 & getAxis() const
void set(const Vec3 &point, const Vec3 &axis)
Configure everything at once by providing a line with given axis, passing through given point.
CylindricalJointFrame(const Vec3 &point, const Vec3 &axis)
A cylindrical joint is similar to a prismatic joint but with an extra degree of freedom free (rotatio...
virtual ~CylindricalJoint()
virtual void render(agxRender::RenderManager *mgr, float scale) const override
Internal method used for debug rendering.
CylindricalJoint(RigidBody *rb1, Frame *rb1AttachmentFrame, RigidBody *rb2=nullptr, Frame *rb2AttachmentFrame=nullptr)
Create Cylindrical joint given one or two rigid bodies with corresponding attachment frames.
virtual int getNumDOF() const override
CylindricalJoint(const CylindricalJointFrame &cf, RigidBody *rb1, RigidBody *rb2=0)
Create Cylindrical joint given a cylindrical joint frame (line defined in world coordinates)
The object defining a frame of reference and providing transformations operations.
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for handling referenced counted objects.
The agxUtil namespace contain classes and methods for utility functionality.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ref_ptr< CylindricalJoint > CylindricalJointRef