127 class PrismaticImplementation* 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 only one degree of freedom such as Hinge and Prismatic.
The object defining a frame of reference and providing transformations operations.
Helper function to define the reference frame used by the prismatic constraint.
PrismaticFrame()
Default constructor: translational axis is along Z.
~PrismaticFrame()
Destructor.
const Vec3 & getAxis() const
void setPoint(const Vec3 &point)
Provide a point lying on the axis.
PrismaticFrame(const Vec3 &point, const Vec3 &axis)
Constructor.
void set(const Vec3 &point, const Vec3 &axis)
Configure everything at once by providing a line with given axis, passing through given point.
void setAxis(const Vec3 &axis)
Set the translational axis.
A prismatic joint keeps a fixed relative orientation between the attached bodies but allows them to s...
Prismatic(const PrismaticFrame &pf, RigidBody *rb1, RigidBody *rb2=0)
Create a Prismatic joint given a prismatic frame (world coordinates) 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...
Prismatic(RigidBody *rb1, Frame *rb1AttachmentFrame, RigidBody *rb2=nullptr, Frame *rb2AttachmentFrame=nullptr)
Create a Prismatic joint given attachment frames and one or two rigid bodies.
virtual void render(agxRender::RenderManager *mgr, float scale) const override
Used internally for debug rendering.
virtual int getNumDOF() const override
Prismatic(const Vec3 &axis, RigidBody *rb1, RigidBody *rb2=nullptr)
Create a Prismatic joint given the prismatic axis and one or two rigid bodies.
The rigid body class, combining a geometric model and a frame of reference.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.