Package com.jme3.bullet.control
Class KinematicRagdollControl.PhysicsBoneLink
java.lang.Object
com.jme3.bullet.control.KinematicRagdollControl.PhysicsBoneLink
- All Implemented Interfaces:
Savable
- Enclosing class:
- KinematicRagdollControl
Link a bone to a jointed rigid body.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Bone
protected Quaternion
protected SixDofJoint
protected PhysicsRigidBody
protected Vector3f
protected Quaternion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBone()
Access the linked bone.Access the linked body.void
read
(JmeImporter im) De-serialize this bone link, for example when loading from a J3O file.void
write
(JmeExporter ex) Serialize this bone link, for example when saving to a J3O file.
-
Field Details
-
rigidBody
-
bone
-
joint
-
initalWorldRotation
-
startBlendingRot
-
startBlendingPos
-
-
Constructor Details
-
PhysicsBoneLink
public PhysicsBoneLink()Instantiate an uninitialized link.
-
-
Method Details
-
getBone
Access the linked bone.- Returns:
- the pre-existing instance or null
-
getRigidBody
Access the linked body.- Returns:
- the pre-existing instance or null
-
write
Serialize this bone link, for example when saving to a J3O file.- Specified by:
write
in interfaceSavable
- Parameters:
ex
- exporter (not null)- Throws:
IOException
- from exporter
-
read
De-serialize this bone link, for example when loading from a J3O file.- Specified by:
read
in interfaceSavable
- Parameters:
im
- importer (not null)- Throws:
IOException
- from importer
-