Documentation

Classes

Class CL3D.BoundingBoxTriangleSelector

Interface to return triangles with specific properties, useful for collision detection.

Extends CL3D.TriangleSelector.

Class Overview
CL3D.BoundingBoxTriangleSelector(Box, scenenode)
Implementation of TriangleSelector based on a simple, static bounding box, useful for collision detection.
Every CL3D.SceneNode may have a triangle selector, available with SceneNode::Selector. This is used for doing collision detection: For example if you know that a collision may have happened in the area between (1,1,1) and (10,10,10), you can get all triangles of the scene node in this area with the TriangleSelector easily and check every triangle if it collided.
Parameters:
Box
CL3D.Box3d representing the simpliefied collision object of the node
scenenode

Method Summary
Method Attributes Method Name and Description
 
Creates a clone of this triangle selector, for a new scene node
Methods borrowed from class CL3D.TriangleSelector:
getAllTriangles, getCollisionPointWithLine, getRelatedSceneNode, getTrianglesInBox, setNodeToIgnore
Method Detail
createClone(node)
Creates a clone of this triangle selector, for a new scene node
Parameters:
node
{CL3D.SceneNode} scene node the selector is based on
Returns:
returns TriangleSelector if this selector can be cloned or null if not

© 2011-2017 N.Gebhardt, Ambiera
Documentation generated by JsDoc Toolkit