Class CylinderCollisionShape

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

public class CylinderCollisionShape extends CollisionShape
Basic cylinder collision shape
Author:
normenhansen
  • Field Details

    • halfExtents

      protected com.jme3.math.Vector3f halfExtents
    • axis

      protected int axis
  • Constructor Details

    • CylinderCollisionShape

      protected CylinderCollisionShape()
    • CylinderCollisionShape

      public CylinderCollisionShape(com.jme3.math.Vector3f halfExtents)
      creates a cylinder shape from the given halfextents
      Parameters:
      halfExtents - the halfextents to use
    • CylinderCollisionShape

      public CylinderCollisionShape(com.jme3.math.Vector3f halfExtents, int axis)
      Creates a cylinder shape around the given axis from the given halfextents
      Parameters:
      halfExtents - the halfextents to use
      axis - (0=X,1=Y,2=Z)
  • Method Details

    • getHalfExtents

      public final com.jme3.math.Vector3f getHalfExtents()
    • getAxis

      public int getAxis()
    • setScale

      public void setScale(com.jme3.math.Vector3f scale)
      WARNING - CompoundCollisionShape scaling has no effect.
      Overrides:
      setScale in class CollisionShape
    • 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()