PixelLightAPI
.
|
Ragdoll body. More...
#include <RagdollBody.h>
Public Member Functions | |
PLPHYSICS_API | RagdollBody (SNRagdoll *pParent) |
Constructor. | |
virtual PLPHYSICS_API | ~RagdollBody () |
Destructor. | |
PLPHYSICS_API Body * | GetBody () const |
Returns the PL physics body. | |
PLPHYSICS_API bool | SetName (const PLCore::String &sName) |
Sets the name of the body. | |
PLPHYSICS_API void | Draw (PLRenderer::Renderer &cRenderer, const PLGraphics::Color4 &cColor, const PLScene::VisNode &cVisNode) const |
Draws the physics body. | |
PLPHYSICS_API void | CreatePhysicsBody () |
Creates the physics body. | |
PLPHYSICS_API void | DestroyPhysicsBody () |
Destroys the physics body. | |
PLPHYSICS_API void | GetRotation (PLMath::Quaternion &qQ) const |
Returns the current rotation of the physics body. | |
PLPHYSICS_API void | GetTransformMatrix (PLMath::Matrix3x4 &mTrans) const |
Returns the current transform matrix of the physics body. | |
PLPHYSICS_API void | AddForce (const PLMath::Vector3 &vForce) |
Adds a force to the body. | |
Public Attributes | |
PLCore::uint32 | nIndex |
PLCore::String | sName |
PLCore::String | sJoint |
bool | bEnabled |
PLMath::Vector3 | vSize |
PLMath::Vector3 | vPos |
PLMath::Quaternion | qRot |
float | fMass |
SNRagdoll * | m_pParentRagdoll |
ElementHandler * | m_pBodyHandler |
Ragdoll body.
PLPHYSICS_API PLPhysics::RagdollBody::RagdollBody | ( | SNRagdoll * | pParent | ) |
Constructor.
[in] | pParent | Parent ragdoll |
virtual PLPHYSICS_API PLPhysics::RagdollBody::~RagdollBody | ( | ) | [virtual] |
Destructor.
PLPHYSICS_API Body* PLPhysics::RagdollBody::GetBody | ( | ) | const |
Returns the PL physics body.
PLPHYSICS_API bool PLPhysics::RagdollBody::SetName | ( | const PLCore::String & | sName | ) |
Sets the name of the body.
[in] | sName | New body name |
PLPHYSICS_API void PLPhysics::RagdollBody::Draw | ( | PLRenderer::Renderer & | cRenderer, |
const PLGraphics::Color4 & | cColor, | ||
const PLScene::VisNode & | cVisNode | ||
) | const |
Draws the physics body.
[in] | cRenderer | Renderer to use |
[in] | cColor | Color to use |
[in] | cVisNode | The current visibility node of this scene node |
PLPHYSICS_API void PLPhysics::RagdollBody::CreatePhysicsBody | ( | ) |
Creates the physics body.
PLPHYSICS_API void PLPhysics::RagdollBody::DestroyPhysicsBody | ( | ) |
Destroys the physics body.
PLPHYSICS_API void PLPhysics::RagdollBody::GetRotation | ( | PLMath::Quaternion & | ) | const |
Returns the current rotation of the physics body.
[out] | Will receive the current rotation of the physics body |
PLPHYSICS_API void PLPhysics::RagdollBody::GetTransformMatrix | ( | PLMath::Matrix3x4 & | mTrans | ) | const |
Returns the current transform matrix of the physics body.
[out] | mTrans | Will receive the current transform matrix of the physics body |
PLPHYSICS_API void PLPhysics::RagdollBody::AddForce | ( | const PLMath::Vector3 & | vForce | ) |
Adds a force to the body.
[in] | vForce | Force to add |
PLCore::uint32 PLPhysics::RagdollBody::nIndex |
Joint this body is attached to
Holds the PL physics body
|