17 #ifndef AGX_BALLJOINT_H
18 #define AGX_BALLJOINT_H
111 class BallJointImplementation* m_implementation;
150 class WorldFrameBallJointImplementation* 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.
Class for storing the geometric information of a BallJoint.
BallJointFrame(const Vec3 ¢er)
void setCenter(const Vec3 ¢er)
const Vec3 & getCenter() const
~BallJointFrame()
Destructor.
Constraint that removes the three translation DOF between two bodies (or one and the world).
virtual void render(agxRender::RenderManager *mgr, float scale) const override
Inherited method of how to render this constraint into DebugRenderer.
BallJoint(RigidBody *rb1, Frame *rb1AttachmentFrame, RigidBody *rb2=nullptr, Frame *rb2AttachmentFrame=nullptr)
Create a Ball Joint given one or two bodies with their respective attachment frames.
BallJoint(class BallJointImplementation *impl)
BallJoint(RigidBody *rb1, const Vec3 &rb1LocalAttachPoint, RigidBody *rb2=nullptr, const Vec3 &rb2LocalAttachPoint=Vec3())
Create a Ball Joint given one or two bodies with relative attachment points.
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
virtual int getNumDOF() const override
BallJoint(const BallJointFrame &bf, RigidBody *rb1, RigidBody *rb2=0)
Constructor that creates a Ball Joint.
The base class for a constraint.
The object defining a frame of reference and providing transformations operations.
The rigid body class, combining a geometric model and a frame of reference.
Special version of a ball joint where the spatial reference frame is world for the body/bodies.
WorldFrameBallJoint(RigidBody *rb1, Frame *rb1AttachmentFrame, RigidBody *rb2=nullptr, Frame *rb2AttachmentFrame=nullptr)
Create a Ball Joint given one or two bodies with their respective attachment frames.
virtual ~WorldFrameBallJoint()
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
ref_ptr< WorldFrameBallJoint > WorldFrameBallJointRef
ref_ptr< BallJoint > BallJointRef