public class NativeMeshUtil
extends java.lang.Object
Constructor and Description |
---|
NativeMeshUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
createTriangleIndexVertexArray(java.nio.ByteBuffer triangleIndexBase,
java.nio.ByteBuffer vertexBase,
int numTraingles,
int numVertices,
int vertextStride,
int triangleIndexStride)
Instantiate a btTriangleIndexVertexArray.
|
static long |
getTriangleIndexVertexArray(Mesh mesh)
Pass a mesh to Native Bullet.
|
public static long getTriangleIndexVertexArray(Mesh mesh)
mesh
- the JME mesh to pass (not null)public static long createTriangleIndexVertexArray(java.nio.ByteBuffer triangleIndexBase, java.nio.ByteBuffer vertexBase, int numTraingles, int numVertices, int vertextStride, int triangleIndexStride)
triangleIndexBase
- index buffer (not null)vertexBase
- vertex buffer (not null)numTraingles
- the number of triangles in the mesh (≥0)numVertices
- the number of vertices in the mesh (≥0)vertextStride
- (in bytes, >0)triangleIndexStride
- (in bytes, >0)