Class CylinderCollisionShape

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

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

    • halfExtents

      protected Vector3f halfExtents
    • axis

      protected int axis
  • Constructor Details

    • CylinderCollisionShape

      protected CylinderCollisionShape()
    • CylinderCollisionShape

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

      public CylinderCollisionShape(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