112 class SlackPrismaticJointImplementation* 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.
Helper function to define the reference frame used by the prismatic constraint.
The rigid body class, combining a geometric model and a frame of reference.
A constraint that is equal to the.
bool setSlackParameters(agx::Vec2 pos_uv, agx::Real rot)
Set slack range parameters.
SlackPrismaticJoint(const Vec3 &axis, RigidBody *rb1, RigidBody *rb2=nullptr)
Create a Prismatic joint given the prismatic axis 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...
SlackPrismaticJoint(const PrismaticFrame &pf, RigidBody *rb1, RigidBody *rb2=0)
Create a Prismatic joint given a prismatic frame (world coordinates) and one or two rigid bodies.
virtual ~SlackPrismaticJoint()
bool getSlackParameters(agx::Vec2 &pos_uv, agx::Real &rot) const
Read the current slack parameters.
SlackPrismaticJoint(RigidBody *rb1, Frame *rb1AttachmentFrame, RigidBody *rb2=nullptr, Frame *rb2AttachmentFrame=nullptr)
Create a Prismatic joint given attachment frames and one or two rigid bodies.
virtual int getNumDOF() const override
virtual void render(agxRender::RenderManager *mgr, float scale) const override
Used internally for debug rendering.
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
SlackPrismaticJoint SlackPrismatic
ref_ptr< SlackPrismaticJoint > SlackPrismaticJointRef