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, setMargin
protected 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 shapepublic void removeChildShape(CollisionShape shape)
shape
- the child shape to removepublic java.util.List<ChildCollisionShape> getChildren()
public void setScale(Vector3f scale)
setScale
in class CollisionShape
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
write
in class CollisionShape
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class CollisionShape
java.io.IOException