Package com.jme3.collision.bih
Class BIHTree
java.lang.Object
com.jme3.collision.bih.BIHTree
- All Implemented Interfaces:
Savable
,CollisionData
,Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
collideWith
(Collidable other, Matrix4f worldMatrix, BoundingVolume worldBound, CollisionResults results) void
void
getTriangle
(int index, Vector3f v1, Vector3f v2, Vector3f v3) void
read
(JmeImporter im) void
swapTriangles
(int index1, int index2) void
write
(JmeExporter ex)
-
Field Details
-
MAX_TREE_DEPTH
public static final int MAX_TREE_DEPTH- See Also:
-
MAX_TRIS_PER_NODE
public static final int MAX_TRIS_PER_NODE- See Also:
-
-
Constructor Details
-
BIHTree
-
BIHTree
-
BIHTree
public BIHTree()
-
-
Method Details
-
construct
public void construct() -
getTriangle
-
swapTriangles
public void swapTriangles(int index1, int index2) -
collideWith
public int collideWith(Collidable other, Matrix4f worldMatrix, BoundingVolume worldBound, CollisionResults results) - Specified by:
collideWith
in interfaceCollisionData
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-