public class SphereCollisionShape extends CollisionShape
| Modifier and Type | Field and Description |
|---|---|
protected float |
radius |
cShape, margin, scale| Constructor and Description |
|---|
SphereCollisionShape() |
SphereCollisionShape(float radius)
creates a SphereCollisionShape with the given radius
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape() |
float |
getRadius() |
void |
read(com.jme3.export.JmeImporter im) |
void |
write(com.jme3.export.JmeExporter ex) |
calculateLocalInertia, getCShape, getMargin, getScale, setCShape, setMargin, setScalepublic SphereCollisionShape()
public SphereCollisionShape(float radius)
radius - public float getRadius()
public void write(com.jme3.export.JmeExporter ex)
throws java.io.IOException
write in interface com.jme3.export.Savablewrite in class CollisionShapejava.io.IOExceptionpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savableread in class CollisionShapejava.io.IOExceptionprotected void createShape()