Package com.jme3.bullet.animation
Class BoneLink
java.lang.Object
com.jme3.bullet.animation.PhysicsLink
com.jme3.bullet.animation.BoneLink
- All Implemented Interfaces:
- Savable,- JmeCloneable,- Cloneable
Link an animated bone in a skeleton to a jointed rigid body in a ragdoll.
 
This class is shared between JBullet and Native Bullet.
- 
Field SummaryFieldsFields inherited from class com.jme3.bullet.animation.PhysicsLinklogger
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedBoneLink()No-argument constructor needed by SavableClassUtil.
- 
Method SummaryModifier and TypeMethodDescriptionvoidblendToKinematicMode(KinematicSubmode submode, float blendInterval) Begin blending this link to a purely kinematic mode.voidcloneFields(Cloner cloner, Object original) Callback fromClonerto convert this shallow-cloned link into a deep-cloned one, using the specified cloner and original to resolve copied fields.protected voidUpdate this link in Dynamic mode, setting the linked bone's transform based on the transform of the rigid body.jmeClone()Create a shallow clone for the JME cloner.protected voidkinematicUpdate(float tpf) Update this link in blended Kinematic mode.name()Unambiguously identify this link by name, within its DynamicAnimControl.voidread(JmeImporter im) De-serialize this link, for example when loading from a J3O file.voidsetDynamic(Vector3f uniformAcceleration) Immediately put this link into dynamic mode and update the range of motion of its joint.voidwrite(JmeExporter ex) Serialize this link, for example when saving to a J3O file.Methods inherited from class com.jme3.bullet.animation.PhysicsLinkblendToKinematicMode, boneName, countChildren, getBone, getControl, getJoint, getParent, getRigidBody, isKinematic, kinematicWeight, listChildren, localOffset, physicsTransform, setJoint, setParent, setRigidBody
- 
Field Details- 
logger2message logger for this class
 
- 
- 
Constructor Details- 
BoneLinkprotected BoneLink()No-argument constructor needed by SavableClassUtil. Do not invoke directly!
 
- 
- 
Method Details- 
blendToKinematicModeBegin blending this link to a purely kinematic mode.- Parameters:
- submode- enum value (not null)
- blendInterval- the duration of the blend interval (in seconds, ≥0)
 
- 
cloneFieldsCallback fromClonerto convert this shallow-cloned link into a deep-cloned one, using the specified cloner and original to resolve copied fields.- Specified by:
- cloneFieldsin interface- JmeCloneable
- Overrides:
- cloneFieldsin class- PhysicsLink
- Parameters:
- cloner- the cloner that's cloning this link (not null)
- original- the instance from which this link was shallow-cloned (unused)
 
- 
dynamicUpdateprotected void dynamicUpdate()Update this link in Dynamic mode, setting the linked bone's transform based on the transform of the rigid body.- Specified by:
- dynamicUpdatein class- PhysicsLink
 
- 
jmeCloneCreate a shallow clone for the JME cloner.- Specified by:
- jmeClonein interface- JmeCloneable
- Overrides:
- jmeClonein class- PhysicsLink
- Returns:
- a new instance
 
- 
kinematicUpdateprotected void kinematicUpdate(float tpf) Update this link in blended Kinematic mode.- Overrides:
- kinematicUpdatein class- PhysicsLink
- Parameters:
- tpf- the time interval between frames (in seconds, ≥0)
 
- 
nameUnambiguously identify this link by name, within its DynamicAnimControl.- Specified by:
- namein class- PhysicsLink
- Returns:
- a brief textual description (not null, not empty)
 
- 
readDe-serialize this link, for example when loading from a J3O file.- Specified by:
- readin interface- Savable
- Overrides:
- readin class- PhysicsLink
- Parameters:
- im- importer (not null)
- Throws:
- IOException- from importer
 
- 
setDynamicImmediately put this link into dynamic mode and update the range of motion of its joint.- Overrides:
- setDynamicin class- PhysicsLink
- Parameters:
- uniformAcceleration- the uniform acceleration vector (in physics-space coordinates, not null, unaffected)
 
- 
writeSerialize this link, for example when saving to a J3O file.- Specified by:
- writein interface- Savable
- Overrides:
- writein class- PhysicsLink
- Parameters:
- ex- exporter (not null)
- Throws:
- IOException- from exporter
 
 
-