| Modifier and Type | Field and Description |
|---|---|
Vector3f |
location
translation relative to parent shape (not null)
|
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(Vector3f location,
Matrix3f rotation,
CollisionShape shape)
Instantiate a child shape for use in a compound shape.
|
| Modifier and Type | Method and Description |
|---|---|
void |
read(JmeImporter im)
De-serialize this shape, for example when loading from a J3O file.
|
void |
write(JmeExporter ex)
Serialize this shape, for example when saving to a J3O file.
|
public Vector3f location
public Matrix3f rotation
public CollisionShape shape
protected ChildCollisionShape()
public ChildCollisionShape(Vector3f location, 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(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException