Package com.jme3.bullet.control
Class KinematicRagdollControl.PhysicsBoneLink
java.lang.Object
com.jme3.bullet.control.KinematicRagdollControl.PhysicsBoneLink
- All Implemented Interfaces:
com.jme3.export.Savable
- Enclosing class:
KinematicRagdollControl
public class KinematicRagdollControl.PhysicsBoneLink
extends Object
implements com.jme3.export.Savable
Link a bone to a jointed rigid body.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.jme3.animation.Boneprotected com.jme3.math.Quaternionprotected SixDofJointprotected PhysicsRigidBodyprotected com.jme3.math.Vector3fprotected com.jme3.math.Quaternion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.jme3.animation.BonegetBone()Access the linked bone.Access the linked body.voidread(com.jme3.export.JmeImporter im) De-serialize this bone link, for example when loading from a J3O file.voidwrite(com.jme3.export.JmeExporter ex) Serialize this bone link, for example when saving to a J3O file.
-
Field Details
-
rigidBody
-
bone
protected com.jme3.animation.Bone bone -
joint
-
initalWorldRotation
protected com.jme3.math.Quaternion initalWorldRotation -
startBlendingRot
protected com.jme3.math.Quaternion startBlendingRot -
startBlendingPos
protected com.jme3.math.Vector3f startBlendingPos
-
-
Constructor Details
-
PhysicsBoneLink
public PhysicsBoneLink()Instantiate an uninitialized link.
-
-
Method Details
-
getBone
public com.jme3.animation.Bone 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:
writein interfacecom.jme3.export.Savable- 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:
readin interfacecom.jme3.export.Savable- Parameters:
im- importer (not null)- Throws:
IOException- from importer
-