115 class CylindricalJointImplementation* m_implementation;
#define AGX_DECLARE_POINTER_TYPES(type)
#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.
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.
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
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.
The agxUtil namespace contain classes and methods for utility functionality.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.