com.jme3.bullet.collision.shapes
Class BoxCollisionShape

java.lang.Object
  extended by com.jme3.bullet.collision.shapes.CollisionShape
      extended by com.jme3.bullet.collision.shapes.BoxCollisionShape
All Implemented Interfaces:
Savable

public class BoxCollisionShape
extends CollisionShape

Basic box collision shape


Field Summary
 
Fields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
margin, objectId, scale
 
Constructor Summary
BoxCollisionShape()
           
BoxCollisionShape(Vector3f halfExtents)
          creates a collision box from the given halfExtents
 
Method Summary
protected  void createShape()
           
 Vector3f getHalfExtents()
           
 void read(JmeImporter im)
           
 void write(JmeExporter ex)
           
 
Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShape
finalize, getMargin, getObjectId, getScale, setMargin, setObjectId, setScale
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxCollisionShape

public BoxCollisionShape()

BoxCollisionShape

public BoxCollisionShape(Vector3f halfExtents)
creates a collision box from the given halfExtents

Parameters:
halfExtents - the halfExtents of the CollisionBox
Method Detail

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()