public class SphereCollisionShape extends CollisionShape
| Modifier and Type | Field and Description |
|---|---|
protected float |
radius |
cShape, margin, scale| Modifier | Constructor and Description |
|---|---|
protected |
SphereCollisionShape() |
|
SphereCollisionShape(float radius)
creates a SphereCollisionShape with the given radius
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape() |
float |
getRadius() |
void |
read(JmeImporter im) |
void |
write(JmeExporter ex) |
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin, setScaleprotected SphereCollisionShape()
public SphereCollisionShape(float radius)
radius - public float getRadius()
public 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()