17#ifndef AGX_UNIVERSAL_JOINT_H
18#define AGX_UNIVERSAL_JOINT_H
52 NUM_CONTROLLER_OFFSET = 1,
53 ROTATIONAL_CONTROLLER_1 = 0 + NUM_CONTROLLER_OFFSET,
54 ROTATIONAL_CONTROLLER_2 = 1 + NUM_CONTROLLER_OFFSET,
55 NUM_CONTROLLER_DOF = 2
#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.
The rigid body class, combining a geometric model and a frame of reference.
A Universal Joint has one fixed relative point, the 3 translational dof's, and one constrained axis (...
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...
virtual int getNumControllers() const override
UniversalJoint(agx::RigidBody *rb1, agx::Frame *rb1AttachmentFrame, agx::RigidBody *rb2=nullptr, agx::Frame *rb2AttachmentFrame=nullptr)
Create a universal joint given attachment frames and one or two rigid bodies.
CONTROLLER_DOF
Enum to access the controllers for unconstrained DOF's of the constraint.
virtual int getNumDOF() const override
virtual ~UniversalJoint()
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ref_ptr< UniversalJoint > UniversalJointRef