Package com.jme3.bullet.collision.shapes
Class CylinderCollisionShape
java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.CylinderCollisionShape
- All Implemented Interfaces:
 Savable
Basic cylinder collision shape
- 
Field Summary
FieldsFields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
cShape, margin, scale - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCylinderCollisionShape(Vector3f halfExtents) creates a cylinder shape from the given halfextentsCylinderCollisionShape(Vector3f halfExtents, int axis) Creates a cylinder shape around the given axis from the given halfextents - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidintgetAxis()final Vector3fvoidread(JmeImporter im) voidWARNING - CompoundCollisionShape scaling has no effect.voidwrite(JmeExporter ex) Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShape
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin 
- 
Field Details
- 
halfExtents
 - 
axis
protected int axis 
 - 
 - 
Constructor Details
- 
CylinderCollisionShape
protected CylinderCollisionShape() - 
CylinderCollisionShape
creates a cylinder shape from the given halfextents- Parameters:
 halfExtents- the halfextents to use
 - 
CylinderCollisionShape
Creates a cylinder shape around the given axis from the given halfextents- Parameters:
 halfExtents- the halfextents to useaxis- (0=X,1=Y,2=Z)
 
 - 
 - 
Method Details
- 
getHalfExtents
 - 
getAxis
public int getAxis() - 
setScale
WARNING - CompoundCollisionShape scaling has no effect.- Overrides:
 setScalein classCollisionShape
 - 
write
- Specified by:
 writein interfaceSavable- Overrides:
 writein classCollisionShape- Throws:
 IOException
 - 
read
- Specified by:
 readin interfaceSavable- Overrides:
 readin classCollisionShape- Throws:
 IOException
 - 
createShape
protected void createShape() 
 -