#include <CPhysicsBallSocket.h>
Inherits IPhysicsJoint.
Public Member Functions | |
| CPhysicsBallSocket () | |
| Empty constructor for the joint. | |
| ~CPhysicsBallSocket () | |
| void | init (NewtonWorld *world, SPhysicsBallSocketJoint *jnt) |
| This function initializes the ball socket joint. | |
| void | changeJointLimits (vector3df pin, f32 maxConeAngle, f32 maxTwistAngle) |
| This function is used to change the limits of the ball socket. | |
| void | setUserCallback (NewtonBallCallBack callback) |
| This function is used to have a user joint callback. | |
| vector3df | getForce () |
| This function is used to get the force applied on the joint. | |
| vector3df | getAngle () |
| This function is used to get the current agle of the joint. | |
| vector3df | getOmega () |
| This function is used to get the omega of the joint. | |
| NewtonJoint * | getJoint () |
| This function returns a pointer to the newton joint object. | |
Static Private Member Functions | |
| static void _cdecl | ballCallback (const NewtonJoint *ball) |
Static Private Attributes | |
| static vector3df | m_breakForce |
| CPhysicsBallSocket::CPhysicsBallSocket | ( | ) |
Empty constructor for the joint.
| CPhysicsBallSocket::~CPhysicsBallSocket | ( | ) |
The destructor is also empty as the joint destruction is handled by the IPhysicsJoint base class.
| void CPhysicsBallSocket::init | ( | NewtonWorld * | world, | |
| SPhysicsBallSocketJoint * | jnt | |||
| ) |
This function initializes the ball socket joint.
| void CPhysicsBallSocket::changeJointLimits | ( | vector3df | pin, | |
| f32 | maxConeAngle, | |||
| f32 | maxTwistAngle | |||
| ) |
This function is used to change the limits of the ball socket.
| void CPhysicsBallSocket::setUserCallback | ( | NewtonBallCallBack | callback | ) |
This function is used to have a user joint callback.
| vector3df CPhysicsBallSocket::getForce | ( | ) |
This function is used to get the force applied on the joint.
| vector3df CPhysicsBallSocket::getAngle | ( | ) |
This function is used to get the current agle of the joint.
| vector3df CPhysicsBallSocket::getOmega | ( | ) |
This function is used to get the omega of the joint.
| NewtonJoint * CPhysicsBallSocket::getJoint | ( | ) |
| void CPhysicsBallSocket::ballCallback | ( | const NewtonJoint * | ball | ) | [static, private] |
Callback for the ball socket joint This callback handles the joint breaking.
vector3df CPhysicsBallSocket::m_breakForce [static, private] |
Break force needed to break the join. This variable is declared static as it is called in static newton callbacks.
1.5.1-p1