Class GImpactCollisionShape

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

public class GImpactCollisionShape extends CollisionShape
Basic mesh collision shape
Author:
normenhansen
  • Field Details

    • worldScale

      protected com.jme3.math.Vector3f worldScale
    • 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

    • GImpactCollisionShape

      protected GImpactCollisionShape()
    • GImpactCollisionShape

      public GImpactCollisionShape(com.jme3.scene.Mesh mesh)
      creates a collision shape from the given Mesh
      Parameters:
      mesh - the Mesh to use
  • Method Details

    • createJmeMesh

      public com.jme3.scene.Mesh createJmeMesh()
      creates a jme mesh from the collision shape, only needed for debugging
      Returns:
      a new Mesh
    • write

      public void write(com.jme3.export.JmeExporter ex) throws IOException
      Specified by:
      write in interface com.jme3.export.Savable
      Overrides:
      write in class CollisionShape
      Throws:
      IOException
    • read

      public void read(com.jme3.export.JmeImporter im) throws IOException
      Specified by:
      read in interface com.jme3.export.Savable
      Overrides:
      read in class CollisionShape
      Throws:
      IOException
    • createShape

      protected void createShape()
    • setScale

      public void setScale(com.jme3.math.Vector3f scale)
      Overrides:
      setScale in class CollisionShape