List of all members.
Detailed Description
CollisionMesh is one of the collision models and represents a complete mesh and has its own kd-Tree for fast collision detection. Each kd-Tree node leaf stores a list of SCollisionFace instances. Thus modifying your mesh does not effect the collision model after it has been already created.
Member Typedef Documentation
Constructor & Destructor Documentation
sp::scene::CollisionMesh::CollisionMesh |
( |
CollisionMaterial * |
Material, |
|
|
const std::list< Mesh * > & |
MeshList, |
|
|
u8 |
MaxTreeLevel = DEF_KDTREE_LEVEL | |
|
) |
| | |
sp::scene::CollisionMesh::~CollisionMesh |
( |
|
) |
|
Member Function Documentation
Checks for an intersection between this collision object and the given line and stores the result in the specified contact structure.
- Parameters:
-
| Line,: | Specifies the line which could intersect this object. |
| Contact,: | Specifies the structure where the intersection result will be stored. |
- Note:
- The implementations of this interface function normally only store the point and normal vector of an intersection.
Reimplemented from sp::scene::CollisionNode.
bool sp::scene::CollisionMesh::checkIntersection |
( |
const dim::line3df & |
Line, |
|
|
bool |
ExcludeCorners = false | |
|
) |
| | const [virtual] |
Returns true if an intersection between this collision object and the given line exists but does not return any further information.
- Parameters:
-
| Line,: | Specifies the line which could intersect this object. |
| ExcludeCorners,: | Specifies whether the line's corners should be ingored. This can be useful for ray-tracing or lightmapping to avoid self-shadowing. |
Reimplemented from sp::scene::CollisionNode.
Checks for intersections between this collision object and the given line and stored the result in the specified contact list.
- Parameters:
-
| Line,: | Specifies the line which could intersect this object. |
| ContactList,: | Specifies the list where all the intersection results will be stored. |
- Note:
- The implementations of this interface function don't sort the resulting contact list.
Reimplemented from sp::scene::CollisionNode.
Returns the collidable face side.
f32 sp::scene::CollisionMesh::getMaxMovement |
( |
|
) |
const [virtual] |
Returns the maximal movement (e.g. for a sphere it's the radius). This is used internally. A collision node can still be moved faster than this value.
Implements sp::scene::CollisionNode.
KDTreeNode* sp::scene::CollisionMesh::getRootTreeNode |
( |
|
) |
const [inline] |
s32 sp::scene::CollisionMesh::getSupportFlags |
( |
|
) |
const [virtual] |
The documentation for this class was generated from the following files:
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/SceneGraph/Collision/spCollisionMesh.hpp
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/SceneGraph/Collision/spCollisionMesh.cpp