com.jme3.bullet.collision.shapes
Class BoxCollisionShape
java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.BoxCollisionShape
- All Implemented Interfaces:
- Savable
public class BoxCollisionShape
- extends CollisionShape
Basic box collision shape
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoxCollisionShape
public BoxCollisionShape()
BoxCollisionShape
public BoxCollisionShape(Vector3f halfExtents)
- creates a collision box from the given halfExtents
- Parameters:
halfExtents
- the halfExtents of the CollisionBox
getHalfExtents
public final Vector3f getHalfExtents()
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()