Package com.jme3.bullet.objects.infos
Class RigidBodySnapshot
java.lang.Object
com.jme3.bullet.objects.infos.RigidBodySnapshot
Copy certain properties of a
PhysicsRigidBody
in order to re-apply
them later. Immutable.
Snapshots are used for rebuilding, so they don't include the collision shape, inertia, joints, kinematic flag, mass, motion state, or physics space.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInstantiate a snapshot of the specified body. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Apply all properties (except the ignore list) to the specified body.void
applyTo
(PhysicsRigidBody body) Apply the properties to the specified body.
-
Field Details
-
logger
message logger for this class
-
-
Constructor Details
-
RigidBodySnapshot
Instantiate a snapshot of the specified body.- Parameters:
body
- the body to capture (not null)
-
-
Method Details
-
applyAllExceptIgnoreListTo
Apply all properties (except the ignore list) to the specified body.- Parameters:
body
- the target body (not null, modified)
-
applyTo
Apply the properties to the specified body.- Parameters:
body
- the target body (not null, modified)
-