com.jme3.bullet.collision.shapes
Class SphereCollisionShape
java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.SphereCollisionShape
- All Implemented Interfaces:
- Savable
public class SphereCollisionShape
- extends CollisionShape
Basic sphere collision shape
Field Summary |
protected float |
radius
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
radius
protected float radius
SphereCollisionShape
public SphereCollisionShape()
SphereCollisionShape
public SphereCollisionShape(float radius)
- creates a SphereCollisionShape with the given radius
- Parameters:
radius
-
getRadius
public float getRadius()
write
public void write(JmeExporter ex)
throws java.io.IOException
- Specified by:
write
in interface Savable
- Overrides:
write
in class CollisionShape
- Throws:
java.io.IOException
read
public void read(JmeImporter im)
throws java.io.IOException
- Specified by:
read
in interface Savable
- Overrides:
read
in class CollisionShape
- Throws:
java.io.IOException
createShape
protected void createShape()