Package 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
A CompoundCollisionShape allows combining multiple base shapes
 to generate a more sophisticated shape.
- 
Field Summary
FieldsFields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
cShape, margin, scale - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildShape(CollisionShape shape, Vector3f location) adds a child shape at the given local translationvoidaddChildShape(CollisionShape shape, Vector3f location, Matrix3f rotation) adds a child shape at the given local translationvoidread(JmeImporter im) voidremoveChildShape(CollisionShape shape) removes a child shapevoidWARNING - CompoundCollisionShape scaling has no effect.voidwrite(JmeExporter ex) Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShape
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin 
- 
Field Details
- 
children
 
 - 
 - 
Constructor Details
- 
CompoundCollisionShape
public CompoundCollisionShape() 
 - 
 - 
Method Details
- 
addChildShape
adds a child shape at the given local translation- Parameters:
 shape- the child shape to addlocation- the local location of the child shape
 - 
addChildShape
adds a child shape at the given local translation- Parameters:
 shape- the child shape to addlocation- the local location of the child shaperotation- the local orientation of the child shape (not null, unaffected)
 - 
removeChildShape
removes a child shape- Parameters:
 shape- the child shape to remove
 - 
getChildren
 - 
setScale
WARNING - CompoundCollisionShape scaling has no effect.- Overrides:
 setScalein classCollisionShape
 - 
write
- Specified by:
 writein interfaceSavable- Overrides:
 writein classCollisionShape- Throws:
 IOException
 - 
read
- Specified by:
 readin interfaceSavable- Overrides:
 readin classCollisionShape- Throws:
 IOException
 
 -