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, setMargin
protected 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 CollisionShape
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
write
in class CollisionShape
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class CollisionShape
java.io.IOException
protected void createShape()