public class RigidBodySnapshot
extends java.lang.Object
Snapshots are used for rebuilding, so they don't include the collision shape, inertia, joints, kinematic flag, mass, motion state, or physics space.
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Constructor and Description |
|---|
RigidBodySnapshot(PhysicsRigidBody body)
Instantiate a snapshot of the specified body.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyAllExceptIgnoreListTo(PhysicsRigidBody body)
Apply all properties (except the ignore list) to the specified body.
|
void |
applyTo(PhysicsRigidBody body)
Apply the properties to the specified body.
|
public static final java.util.logging.Logger logger
public RigidBodySnapshot(PhysicsRigidBody body)
body - the body to capture (not null)public void applyAllExceptIgnoreListTo(PhysicsRigidBody body)
body - the target body (not null, modified)public void applyTo(PhysicsRigidBody body)
body - the target body (not null, modified)