public class ChildCollisionShape
extends java.lang.Object
implements com.jme3.export.Savable
This class is shared between JBullet and Native Bullet.
| Modifier and Type | Field and Description |
|---|---|
com.jme3.math.Vector3f |
location
translation relative to parent shape (not null)
|
com.jme3.math.Matrix3f |
rotation
rotation relative to parent shape (not null)
|
CollisionShape |
shape
base shape (not null, not a compound shape)
|
| Modifier | Constructor and Description |
|---|---|
protected |
ChildCollisionShape()
No-argument constructor needed by SavableClassUtil.
|
|
ChildCollisionShape(com.jme3.math.Vector3f location,
com.jme3.math.Matrix3f rotation,
CollisionShape shape)
Instantiate a child shape for use in a compound shape.
|
| Modifier and Type | Method and Description |
|---|---|
void |
read(com.jme3.export.JmeImporter im)
De-serialize this shape, for example when loading from a J3O file.
|
void |
write(com.jme3.export.JmeExporter ex)
Serialize this shape, for example when saving to a J3O file.
|
public com.jme3.math.Vector3f location
public com.jme3.math.Matrix3f rotation
public CollisionShape shape
protected ChildCollisionShape()
public ChildCollisionShape(com.jme3.math.Vector3f location,
com.jme3.math.Matrix3f rotation,
CollisionShape shape)
location - translation relative to the parent (not null, alias
created)rotation - rotation relative to the parent (not null, alias created)shape - the base shape (not null, not a compound shape, alias
created)public void write(com.jme3.export.JmeExporter ex)
throws java.io.IOException
write in interface com.jme3.export.Savableex - exporter (not null)java.io.IOException - from exporterpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savableim - importer (not null)java.io.IOException - from importer