* Mesh/GImpact collision shapes now support triangle strips/fans through Mesh.getIndicesAsList() method

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9300 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
Sha..rd 2012-04-14 19:29:07 +00:00
parent 1da836ea72
commit 0c1294c57c
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ public class GImpactCollisionShape extends CollisionShape {
numTriangles = mesh.getTriangleCount();
triangleIndexStride = 12; //3 index entries * 4 bytes each.
IndexBuffer indices = mesh.getIndexBuffer();
IndexBuffer indices = mesh.getIndicesAsList();
FloatBuffer vertices = mesh.getFloatBuffer(Type.Position);
vertices.rewind();

View File

@ -76,7 +76,7 @@ public class MeshCollisionShape extends CollisionShape {
numTriangles = mesh.getTriangleCount();
triangleIndexStride = 12; //3 index entries * 4 bytes each.
IndexBuffer indices = mesh.getIndexBuffer();
IndexBuffer indices = mesh.getIndicesAsList();
FloatBuffer vertices = mesh.getFloatBuffer(Type.Position);
vertices.rewind();