public class CylinderCollisionShape extends CollisionShape
| Modifier and Type | Field and Description |
|---|---|
protected int |
axis |
protected Vector3f |
halfExtents |
cShape, margin, scale| Modifier | Constructor and Description |
|---|---|
protected |
CylinderCollisionShape() |
|
CylinderCollisionShape(Vector3f halfExtents)
creates a cylinder shape from the given halfextents
|
|
CylinderCollisionShape(Vector3f halfExtents,
int axis)
Creates a cylinder shape around the given axis from the given halfextents
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape() |
int |
getAxis() |
Vector3f |
getHalfExtents() |
void |
read(JmeImporter im) |
void |
setScale(Vector3f scale)
WARNING - CompoundCollisionShape scaling has no effect.
|
void |
write(JmeExporter ex) |
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMarginprotected Vector3f halfExtents
protected int axis
protected CylinderCollisionShape()
public CylinderCollisionShape(Vector3f halfExtents)
halfExtents - the halfextents to usepublic CylinderCollisionShape(Vector3f halfExtents, int axis)
halfExtents - the halfextents to useaxis - (0=X,1=Y,2=Z)public final Vector3f getHalfExtents()
public int getAxis()
public void setScale(Vector3f scale)
setScale in class CollisionShapepublic void write(JmeExporter ex) throws java.io.IOException
write in interface Savablewrite in class CollisionShapejava.io.IOExceptionpublic void read(JmeImporter im) throws java.io.IOException
read in interface Savableread in class CollisionShapejava.io.IOExceptionprotected void createShape()