public class ChildCollisionShape
extends java.lang.Object
Despite its name, it is not a subtype of CollisionShape!
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Constructor and Description |
|---|
ChildCollisionShape(Vector3f offset,
CollisionShape shape)
Instantiate a child without any rotation.
|
ChildCollisionShape(Vector3f offset,
Matrix3f rotation,
CollisionShape shape)
Instantiate a child for use in a compound shape.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
copyOffset(Vector3f storeResult)
Copy the translation in the parent's coordinate system.
|
Quaternion |
copyRotation(Quaternion storeResult)
Copy the rotation in the parent's coordinate system.
|
Matrix3f |
copyRotationMatrix(Matrix3f storeResult)
Copy the rotation in the parent's coordinate system.
|
Transform |
copyTransform(Transform storeResult)
Copy the Transform relative to the parent's coordinate system.
|
CollisionShape |
getShape()
Access the base shape.
|
void |
setTransform(Vector3f offset,
Matrix3f rotation)
Alter the child's coordinate transform copy.
|
ChildCollisionShape[] |
split(Triangle parentTriangle)
Attempt to divide this child into 2 children.
|
public static final java.util.logging.Logger logger
public ChildCollisionShape(Vector3f offset, Matrix3f rotation, CollisionShape shape)
offset - the desired translation in the parent's coordinate system
(not null, unaffected)rotation - the desired rotation in the parent's coordinate system
(not null, unaffected)shape - the base shape (not null, not a compound shape, alias
created)public ChildCollisionShape(Vector3f offset, CollisionShape shape)
offset - the desired translation in the parent's coordinate system
(not null, unaffected)shape - the base shape (not null, not a compound shape, alias
created)public Vector3f copyOffset(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Quaternion copyRotation(Quaternion storeResult)
storeResult - storage for the result (modified if not null)public Matrix3f copyRotationMatrix(Matrix3f storeResult)
storeResult - storage for the result (modified if not null)public Transform copyTransform(Transform storeResult)
storeResult - storage for the result (modified if not null)public CollisionShape getShape()
public void setTransform(Vector3f offset, Matrix3f rotation)
offset - the desired translation relative to the parent (not null,
unaffected)rotation - the desired rotation relative to the parent (not null,
unaffected)#setChildTransform(com.jme3.bullet.collision.shapes.CollisionShape,
com.jme3.math.Transform)public ChildCollisionShape[] split(Triangle parentTriangle)
parentTriangle - a triangle that defines the splitting plane (in
parent's shape coordinates, not null, unaffected)