com.jme3.collision.bih
Class BIHTree
java.lang.Object
com.jme3.collision.bih.BIHTree
- All Implemented Interfaces:
- Savable, CollisionData, java.lang.Cloneable
public class BIHTree
- extends java.lang.Object
- implements CollisionData
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_TREE_DEPTH
public static final int MAX_TREE_DEPTH
- See Also:
- Constant Field Values
MAX_TRIS_PER_NODE
public static final int MAX_TRIS_PER_NODE
- See Also:
- Constant Field Values
BIHTree
public BIHTree(Mesh mesh,
int maxTrisPerNode)
BIHTree
public BIHTree(Mesh mesh)
BIHTree
public BIHTree()
construct
public void construct()
getTriangle
public void getTriangle(int index,
Vector3f v1,
Vector3f v2,
Vector3f v3)
swapTriangles
public void swapTriangles(int index1,
int index2)
collideWith
public int collideWith(Collidable other,
Matrix4f worldMatrix,
BoundingVolume worldBound,
CollisionResults results)
- Specified by:
collideWith
in interface CollisionData
write
public void write(JmeExporter ex)
throws java.io.IOException
- Specified by:
write
in interface Savable
- Throws:
java.io.IOException
read
public void read(JmeImporter im)
throws java.io.IOException
- Specified by:
read
in interface Savable
- Throws:
java.io.IOException