com.jme3.bullet.collision.shapes
Class CompoundCollisionShape
java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.CompoundCollisionShape
- All Implemented Interfaces:
- Savable
public class CompoundCollisionShape
- extends CollisionShape
A CompoundCollisionShape allows combining multiple base shapes
to generate a more sophisticated shape.
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
children
protected java.util.ArrayList<ChildCollisionShape> children
CompoundCollisionShape
public CompoundCollisionShape()
addChildShape
public void addChildShape(CollisionShape shape,
Vector3f location)
- adds a child shape at the given local translation
- Parameters:
shape
- the child shape to addlocation
- the local location of the child shape
addChildShape
public void addChildShape(CollisionShape shape,
Vector3f location,
Matrix3f rotation)
- adds a child shape at the given local translation
- Parameters:
shape
- the child shape to addlocation
- the local location of the child shape
removeChildShape
public void removeChildShape(CollisionShape shape)
- removes a child shape
- Parameters:
shape
- the child shape to remove
getChildren
public java.util.List<ChildCollisionShape> getChildren()
setScale
public void setScale(Vector3f scale)
- WARNING - CompoundCollisionShape scaling has no effect.
- Overrides:
setScale
in class CollisionShape
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