// create trimesh
TriangleIndexVertexArray indexVertexArrays = new TriangleIndexVertexArray(
Bunny.NUM_TRIANGLES, Bunny.getIndexBuffer(), 4 * 3,
Bunny.NUM_VERTICES, Bunny.getVertexBuffer(), 4 * 3);
GImpactMeshShape trimesh = new GImpactMeshShape(indexVertexArrays);
trimesh.setLocalScaling(new Vector3f(4f, 4f, 4f));
trimesh.updateBound();
trimeshShape = trimesh;
// register algorithm
GImpactCollisionAlgorithm.registerAlgorithm(dispatcher);
}