com.threerings.opengl.model
Class CollisionMesh.LeafNode
java.lang.Object
com.threerings.opengl.model.CollisionMesh.Node
com.threerings.opengl.model.CollisionMesh.LeafNode
- All Implemented Interfaces:
- Exportable
- Enclosing class:
- CollisionMesh
protected static class CollisionMesh.LeafNode
- extends CollisionMesh.Node
A leaf node containing a single triangle.
|
Method Summary |
boolean |
computeIntersection(Ray3D ray,
Vector3f result)
Computes the actual intersection between the ray and this node's geometry, once it has
been established that the ray intersects the node's bounding box. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_triangle
protected Triangle _triangle
- The triangle in the leaf.
CollisionMesh.LeafNode
public CollisionMesh.LeafNode(Box bounds,
Triangle triangle)
CollisionMesh.LeafNode
public CollisionMesh.LeafNode()
computeIntersection
public boolean computeIntersection(Ray3D ray,
Vector3f result)
- Description copied from class:
CollisionMesh.Node
- Computes the actual intersection between the ray and this node's geometry, once it has
been established that the ray intersects the node's bounding box.
- Specified by:
computeIntersection in class CollisionMesh.Node
- Returns:
- true if the ray hit a triangle within the node, in which case the result will be
placed in the object supplied.