com.jme3.bullet.collision.shapes
Class ConeCollisionShape

java.lang.Object
  extended by com.jme3.bullet.collision.shapes.CollisionShape
      extended by com.jme3.bullet.collision.shapes.ConeCollisionShape
All Implemented Interfaces:
Savable

public class ConeCollisionShape
extends CollisionShape


Field Summary
protected  int axis
           
protected  float height
           
protected  float radius
           
 
Fields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
margin, objectId, scale
 
Constructor Summary
ConeCollisionShape()
           
ConeCollisionShape(float radius, float height)
           
ConeCollisionShape(float radius, float height, int axis)
           
 
Method Summary
protected  void createShape()
           
 float getRadius()
           
 void read(JmeImporter im)
           
 void write(JmeExporter ex)
           
 
Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShape
finalize, getMargin, getObjectId, getScale, setMargin, setObjectId, setScale
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radius

protected float radius

height

protected float height

axis

protected int axis
Constructor Detail

ConeCollisionShape

public ConeCollisionShape()

ConeCollisionShape

public ConeCollisionShape(float radius,
                          float height,
                          int axis)

ConeCollisionShape

public ConeCollisionShape(float radius,
                          float height)
Method Detail

getRadius

public float getRadius()

write

public void write(JmeExporter ex)
           throws java.io.IOException
Specified by:
write in interface Savable
Overrides:
write in class CollisionShape
Throws:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
Specified by:
read in interface Savable
Overrides:
read in class CollisionShape
Throws:
java.io.IOException

createShape

protected void createShape()