216 class BallJointImplementation* m_implementation;
255 class WorldFrameBallJointImplementation* 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.
Class for storing the geometric information of a BallJoint.
const Vec3 & getCenter() const
BallJointFrame(const Vec3 ¢er)
void setCenter(const Vec3 ¢er)
~BallJointFrame()
Destructor.
Constraint that removes the three translation DOF between two bodies (or one and the world).
void setEnableConeLimitFriction(bool enable)
Enable/disable all the FrictionControllers connected to the ConeLimit, which sets friction on the lim...
FrictionController * getRotationalFrictionControllerU() const
Get the FrictionController that controls the friction around the U-axis.
FrictionController * getConeLimitFrictionControllerLimit() const
Get the FrictionController that acts along the cone limit.
void setEnableRotationalFriction(bool enable)
Enable/disable rotational friction for all rotational directions of the BallJoint.
FrictionControllerRefSetVector getRotationalFrictionControllers() const
Get all three FrictionControllers that control the rotational friction of the BallJoint.
ConeLimit * getConeLimit()
Get ConeLimit, which can limit the movement of the first body in this constraint, relative to the sec...
RealVector getRotationalFrictionCoefficients() const
Get the friction coefficients of all the rotational friction controllers.
virtual void render(agxRender::RenderManager *mgr, float scale) const override
Inherited method of how to render this constraint into DebugRenderer.
FrictionController * getRotationalFrictionControllerN() const
Get the FrictionController that controls the friction around the N-axis.
FrictionController * getConeLimitFrictionControllerRotational() const
Get the FrictionController that acts on rotations on the cone limit.
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.
RealVector getConeLimitFrictionCoefficients() const
Get the friction coefficients of all the cone limit friction controllers.
void setRotationalFrictionCoefficients(Real frictionCoefficient)
Set the friction coefficient for all rotational FrictionControllers of the BallJoint.
BallJoint(class BallJointImplementation *impl)
const ConeLimit * getConeLimit() const
Get ConeLimit, which can limit the movement of the first body in this constraint, relative to the sec...
FrictionControllerRefSetVector getConeLimitFrictionControllers() const
Get FrictionControllers that control the friction on the limit of the ConeLimit.
TwistRangeController * getTwistRangeController() const
Get TwistRange secondary constraint, making it possible to limit the twist of the first frame relativ...
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.
FrictionController * getRotationalFrictionControllerV() const
Get the FrictionController that controls the friction around the V-axis.
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.
void setConeLimitFrictionCoefficients(Real frictionCoefficient)
Set the friction coefficient for all the FrictionControllers connected to the ConeLimit.
Elementary secondary constraint to set a conic limit to a BallJoint.
The base class for a constraint.
The object defining a frame of reference and providing transformations operations.
Translational or rotational friction controller for Hinge, Prismatic and CylindricalJoint.
The rigid body class, combining a geometric model and a frame of reference.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Twist range elementary constraint.
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()
The agx namespace contains the dynamics/math part of the AGX Dynamics API.