public class SphereCollisionShape extends CollisionShape
| Modifier and Type | Field and Description |
|---|---|
protected float |
radius |
margin, objectId, 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 |
setScale(com.jme3.math.Vector3f scale)
WARNING - CompoundCollisionShape scaling has no effect.
|
void |
write(com.jme3.export.JmeExporter ex) |
finalize, getMargin, getObjectId, getScale, setMargin, setObjectIdpublic 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.IOExceptionpublic void setScale(com.jme3.math.Vector3f scale)
setScale in class CollisionShapeprotected void createShape()