PixelLightAPI
.
|
Abstract PL physics mesh body. More...
#include <BodyMesh.h>
Public Member Functions | |
virtual PLPHYSICS_API | ~BodyMesh () |
Destructor. | |
PLPHYSICS_API PLCore::String | GetMesh () const |
Returns the collision mesh. | |
PLPHYSICS_API const PLMath::Vector3 & | GetMeshScale () const |
Returns the mesh scale. | |
PLPHYSICS_API bool | GetOptimize () const |
Returns whether the physics API is allowed to optimize the mesh or not (if supported) | |
Protected Member Functions | |
PLPHYSICS_API | BodyMesh (World &cWorld, BodyImpl &cBodyImpl, const PLCore::String &sMesh, const PLMath::Vector3 &vMeshScale, bool bOptimize) |
Constructor. | |
Protected Attributes | |
PLCore::String | m_sMesh |
PLMath::Vector3 | m_vMeshScale |
bool | m_bOptimize |
Abstract PL physics mesh body.
virtual PLPHYSICS_API PLPhysics::BodyMesh::~BodyMesh | ( | ) | [virtual] |
Destructor.
PLPHYSICS_API PLPhysics::BodyMesh::BodyMesh | ( | World & | cWorld, |
BodyImpl & | cBodyImpl, | ||
const PLCore::String & | sMesh, | ||
const PLMath::Vector3 & | vMeshScale, | ||
bool | bOptimize | ||
) | [protected] |
Constructor.
[in] | cWorld | World this body is in |
[in] | cBodyImpl | Reference to the physics API specific body implementation |
[in] | sMesh | Collision mesh |
[in] | vMeshScale | Mesh scale |
[in] | bOptimize | Allow the physics API to optimize the mesh? (if supported) |
PLPHYSICS_API PLCore::String PLPhysics::BodyMesh::GetMesh | ( | ) | const |
Returns the collision mesh.
PLPHYSICS_API const PLMath::Vector3& PLPhysics::BodyMesh::GetMeshScale | ( | ) | const |
Returns the mesh scale.
PLPHYSICS_API bool PLPhysics::BodyMesh::GetOptimize | ( | ) | const |
Returns whether the physics API is allowed to optimize the mesh or not (if supported)
PLCore::String PLPhysics::BodyMesh::m_sMesh [protected] |
Collision mesh
PLMath::Vector3 PLPhysics::BodyMesh::m_vMeshScale [protected] |
Mesh scale
bool PLPhysics::BodyMesh::m_bOptimize [protected] |
Allow the physics API to optimize the mesh? (if supported)
|