PixelLightAPI
.
|
Abstract PL physics joint (also called 'constraint') base class. More...
#include <Joint.h>
Public Member Functions | |
virtual PLPHYSICS_API | ~Joint () |
Destructor. | |
PLPHYSICS_API JointImpl & | GetJointImpl () const |
Returns a reference to the physics API specific joint implementation. | |
PLPHYSICS_API Body * | GetParentBody () const |
Returns a pointer to the parent rigid body. | |
PLPHYSICS_API Body * | GetChildBody () const |
Returns a pointer to the attached rigid body. | |
virtual PLPHYSICS_API void | GetCurrentPivotPoint (PLMath::Vector3 &vPosition) const |
Gets the current pivot point of the joint. | |
virtual PLPHYSICS_API bool | IsBreakable () const |
Returns whether the joint is breakable or not. | |
virtual PLPHYSICS_API void | SetBreakable (bool bBreakable) |
Sets whether the joint is breakable or not. | |
virtual PLPHYSICS_API void | GetBreakForce (PLMath::Vector3 &vForce) const |
Returns the break force. | |
virtual PLPHYSICS_API void | SetBreakForce (const PLMath::Vector3 &vForce) |
Sets the break force. | |
virtual PLPHYSICS_API void | GetBreakTorque (PLMath::Vector3 &vTorque) const |
Returns the break torque. | |
virtual PLPHYSICS_API void | SetBreakTorque (const PLMath::Vector3 &vTorque) |
Sets the break torque. | |
virtual PLPHYSICS_API bool | IsBody () const override |
Returns whether or not this is a body. | |
virtual PLPHYSICS_API bool | IsJoint () const override |
Returns whether or not this is a joint. | |
virtual PLPHYSICS_API bool | IsSensor () const override |
Returns whether or not this is a sensor. | |
Protected Member Functions | |
PLPHYSICS_API | Joint (World &cWorld, JointImpl &cJointImpl, Body *pParentBody, Body *pChildBody) |
Constructor. |
Abstract PL physics joint (also called 'constraint') base class.
virtual PLPHYSICS_API PLPhysics::Joint::~Joint | ( | ) | [virtual] |
Destructor.
PLPHYSICS_API PLPhysics::Joint::Joint | ( | World & | cWorld, |
JointImpl & | cJointImpl, | ||
Body * | pParentBody, | ||
Body * | pChildBody | ||
) | [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 |
PLPHYSICS_API JointImpl& PLPhysics::Joint::GetJointImpl | ( | ) | const |
Returns a reference to the physics API specific joint implementation.
PLPHYSICS_API Body* PLPhysics::Joint::GetParentBody | ( | ) | const |
Returns a pointer to the parent rigid body.
PLPHYSICS_API Body* PLPhysics::Joint::GetChildBody | ( | ) | const |
Returns a pointer to the attached rigid body.
virtual PLPHYSICS_API void PLPhysics::Joint::GetCurrentPivotPoint | ( | PLMath::Vector3 & | vPosition | ) | const [virtual] |
Gets the current pivot point of the joint.
[out] | vPosition | Will receive the current pivot point of the joint |
virtual PLPHYSICS_API bool PLPhysics::Joint::IsBreakable | ( | ) | const [virtual] |
Returns whether the joint is breakable or not.
virtual PLPHYSICS_API void PLPhysics::Joint::SetBreakable | ( | bool | bBreakable | ) | [virtual] |
Sets whether the joint is breakable or not.
[in] | bBreakable | 'true' if the joint is breakable, else 'false' (default setting) |
virtual PLPHYSICS_API void PLPhysics::Joint::GetBreakForce | ( | PLMath::Vector3 & | vForce | ) | const [virtual] |
Returns the break force.
[out] | vForce | Will receive the break force |
virtual PLPHYSICS_API void PLPhysics::Joint::SetBreakForce | ( | const PLMath::Vector3 & | vForce | ) | [virtual] |
virtual PLPHYSICS_API void PLPhysics::Joint::GetBreakTorque | ( | PLMath::Vector3 & | vTorque | ) | const [virtual] |
Returns the break torque.
[out] | vTorque | Will receive the break torque |
virtual PLPHYSICS_API void PLPhysics::Joint::SetBreakTorque | ( | const PLMath::Vector3 & | vTorque | ) | [virtual] |
virtual PLPHYSICS_API bool PLPhysics::Joint::IsBody | ( | ) | const [override, virtual] |
Returns whether or not this is a body.
Implements PLPhysics::Element.
virtual PLPHYSICS_API bool PLPhysics::Joint::IsJoint | ( | ) | const [override, virtual] |
Returns whether or not this is a joint.
Implements PLPhysics::Element.
virtual PLPHYSICS_API bool PLPhysics::Joint::IsSensor | ( | ) | const [override, virtual] |
Returns whether or not this is a sensor.
Implements PLPhysics::Element.
|