PixelLightAPI
.
|
Abstract PL physics ball and socket (other name: spherical) joint. More...
#include <JointBall.h>
Public Member Functions | |
virtual PLPHYSICS_API | ~JointBall () |
Destructor. | |
PLPHYSICS_API const PLMath::Vector3 & | GetPivotPoint () const |
Returns the origin of the ball and socket in world space. | |
PLPHYSICS_API const PLMath::Vector3 & | GetPinDir () const |
Returns the vector defining the cone axis in world space. | |
Protected Member Functions | |
PLPHYSICS_API | JointBall (World &cWorld, JointImpl &cJointImpl, Body *pParentBody, Body *pChildBody, const PLMath::Vector3 &vPivotPoint, const PLMath::Vector3 &vPinDir) |
Constructor. | |
Protected Attributes | |
PLMath::Vector3 | m_vPivotPoint |
PLMath::Vector3 | m_vPinDir |
Abstract PL physics ball and socket (other name: spherical) joint.
virtual PLPHYSICS_API PLPhysics::JointBall::~JointBall | ( | ) | [virtual] |
Destructor.
PLPHYSICS_API PLPhysics::JointBall::JointBall | ( | World & | cWorld, |
JointImpl & | cJointImpl, | ||
Body * | pParentBody, | ||
Body * | pChildBody, | ||
const PLMath::Vector3 & | vPivotPoint, | ||
const PLMath::Vector3 & | vPinDir | ||
) | [protected] |
Constructor.
[in] | cWorld | World this joint is in |
[in] | cJointImpl | Reference to the physics API specific joint implementation |
[in] | pParentBody | Pointer to the parent rigid body, can be a null pointer |
[in] | pChildBody | Pointer to the attached rigid body, can be a null pointer |
[in] | vPivotPoint | Origin of the ball and socket in world space |
[in] | vPinDir | Vector defining the cone axis in world space |
PLPHYSICS_API const PLMath::Vector3& PLPhysics::JointBall::GetPivotPoint | ( | ) | const |
Returns the origin of the ball and socket in world space.
PLPHYSICS_API const PLMath::Vector3& PLPhysics::JointBall::GetPinDir | ( | ) | const |
Returns the vector defining the cone axis in world space.
PLMath::Vector3 PLPhysics::JointBall::m_vPivotPoint [protected] |
Origin of the ball and socket in world space
PLMath::Vector3 PLPhysics::JointBall::m_vPinDir [protected] |
Vector defining the cone axis in world space
|