public class BIHTree extends java.lang.Object implements CollisionData
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TREE_DEPTH |
static int |
MAX_TRIS_PER_NODE |
Constructor and Description |
---|
BIHTree() |
BIHTree(Mesh mesh) |
BIHTree(Mesh mesh,
int maxTrisPerNode) |
Modifier and Type | Method and Description |
---|---|
int |
collideWith(Collidable other,
Matrix4f worldMatrix,
BoundingVolume worldBound,
CollisionResults results) |
void |
construct() |
void |
getTriangle(int index,
Vector3f v1,
Vector3f v2,
Vector3f v3) |
void |
read(JmeImporter im) |
void |
swapTriangles(int index1,
int index2) |
void |
write(JmeExporter ex) |
public static final int MAX_TREE_DEPTH
public static final int MAX_TRIS_PER_NODE
public BIHTree(Mesh mesh, int maxTrisPerNode)
public BIHTree(Mesh mesh)
public BIHTree()
public void construct()
public void swapTriangles(int index1, int index2)
public int collideWith(Collidable other, Matrix4f worldMatrix, BoundingVolume worldBound, CollisionResults results)
collideWith
in interface CollisionData
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException