public class CompoundCollisionShape extends CollisionShape
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<ChildCollisionShape> |
children |
cShape, margin, scale| Constructor and Description |
|---|
CompoundCollisionShape() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildShape(CollisionShape shape,
Vector3f location)
adds a child shape at the given local translation
|
void |
addChildShape(CollisionShape shape,
Vector3f location,
Matrix3f rotation)
adds a child shape at the given local translation
|
java.util.List<ChildCollisionShape> |
getChildren() |
void |
read(JmeImporter im) |
void |
removeChildShape(CollisionShape shape)
removes a child shape
|
void |
setScale(Vector3f scale)
WARNING - CompoundCollisionShape scaling has no effect.
|
void |
write(JmeExporter ex) |
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMarginprotected java.util.ArrayList<ChildCollisionShape> children
public void addChildShape(CollisionShape shape, Vector3f location)
shape - the child shape to addlocation - the local location of the child shapepublic void addChildShape(CollisionShape shape, Vector3f location, Matrix3f rotation)
shape - the child shape to addlocation - the local location of the child shaperotation - the local orientation of the child shape (not null,
unaffected)public void removeChildShape(CollisionShape shape)
shape - the child shape to removepublic java.util.List<ChildCollisionShape> getChildren()
public void setScale(Vector3f scale)
setScale in class CollisionShapepublic void write(JmeExporter ex) throws java.io.IOException
write in interface Savablewrite in class CollisionShapejava.io.IOExceptionpublic void read(JmeImporter im) throws java.io.IOException
read in interface Savableread in class CollisionShapejava.io.IOException