Class BoxCollisionShape

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

public class BoxCollisionShape extends CollisionShape
Basic box collision shape
Author:
normenhansen
  • Constructor Details

    • BoxCollisionShape

      protected BoxCollisionShape()
    • BoxCollisionShape

      public BoxCollisionShape(com.jme3.math.Vector3f halfExtents)
      creates a collision box from the given halfExtents
      Parameters:
      halfExtents - the halfExtents of the CollisionBox
  • Method Details

    • getHalfExtents

      public final com.jme3.math.Vector3f getHalfExtents()
    • 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()