17 #ifndef AGX_PRISMATIC_UNIVERSAL_JOINT_H
18 #define AGX_PRISMATIC_UNIVERSAL_JOINT_H
51 NUM_CONTROLLER_OFFSET = 1,
52 ROTATIONAL_CONTROLLER_1 = 0 + NUM_CONTROLLER_OFFSET,
53 ROTATIONAL_CONTROLLER_2 = 1 + NUM_CONTROLLER_OFFSET,
54 TRANSLATIONAL_CONTROLLER_1 = 2 + NUM_CONTROLLER_OFFSET,
55 NUM_CONTROLLER_DOF = 3
#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
An angular joint is defined by having 2 rotational degrees of freedom.
The object defining a frame of reference and providing transformations operations.
A Prismatic Universal Joint has two translational dof's constrained.
CONTROLLER_DOF
Enum to access the controllers for unconstrained DOF's of the constraint.
virtual int getNumDOF() const override
PrismaticUniversalJoint()
virtual ~PrismaticUniversalJoint()
virtual UInt getNumControllerOffset() const override
Constraints in AGX allow for controllers for all non constraint angles.
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
PrismaticUniversalJoint(agx::RigidBody *rb1, agx::Frame *rb1AttachmentFrame, agx::RigidBody *rb2=nullptr, agx::Frame *rb2AttachmentFrame=nullptr)
Create a prismatic universal joint given attachment frames and one or two rigid bodies.
virtual int getNumControllers() const override
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ref_ptr< PrismaticUniversalJoint > PrismaticUniversalJointRef