Class MeshCollisionShape

java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.MeshCollisionShape
All Implemented Interfaces:
Savable

public class MeshCollisionShape extends CollisionShape
Basic mesh collision shape
  • Field Details

    • numVertices

      protected int numVertices
    • numTriangles

      protected int numTriangles
    • vertexStride

      protected int vertexStride
    • triangleIndexStride

      protected int triangleIndexStride
    • triangleIndexBase

      protected ByteBuffer triangleIndexBase
    • vertexBase

      protected ByteBuffer vertexBase
    • bulletMesh

      protected com.bulletphysics.collision.shapes.IndexedMesh bulletMesh
  • Constructor Details

    • MeshCollisionShape

      protected MeshCollisionShape()
    • MeshCollisionShape

      public MeshCollisionShape(Mesh mesh)
      Creates a collision shape from the given TriMesh
      Parameters:
      mesh - the TriMesh to use
    • MeshCollisionShape

      public MeshCollisionShape(Mesh mesh, boolean dummy)
      API compatibility with native bullet.
      Parameters:
      mesh - the TriMesh to use
      dummy - Unused
  • Method Details