public class TorsoLink extends PhysicsLink
This class is shared between JBullet and Native Bullet.
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
logger2
message logger for this class
|
logger
Modifier | Constructor and Description |
---|---|
protected |
TorsoLink()
No-argument constructor needed by SavableClassUtil.
|
Modifier and Type | Method and Description |
---|---|
void |
blendToKinematicMode(KinematicSubmode submode,
float blendInterval,
Transform endModelTransform)
Begin blending this link to a purely kinematic mode.
|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Callback from
Cloner to convert this
shallow-cloned link into a deep-cloned one, using the specified cloner
and original to resolve copied fields. |
protected void |
dynamicUpdate()
Update this link in Dynamic mode, setting the local transform of the
model's root spatial based on the transform of the linked rigid body.
|
TorsoLink |
jmeClone()
Create a shallow clone for the JME cloner.
|
protected void |
kinematicUpdate(float tpf)
Update this link in blended Kinematic mode.
|
java.lang.String |
name()
Unambiguously identify this link by name, within its DynamicAnimControl.
|
void |
read(JmeImporter im)
De-serialize this link, for example when loading from a J3O file.
|
void |
write(JmeExporter ex)
Serialize this link, for example when saving to a J3O file.
|
blendToKinematicMode, boneName, countChildren, getBone, getControl, getJoint, getParent, getRigidBody, isKinematic, kinematicWeight, listChildren, localOffset, physicsTransform, setDynamic, setJoint, setParent, setRigidBody
public static final java.util.logging.Logger logger2
protected TorsoLink()
public void blendToKinematicMode(KinematicSubmode submode, float blendInterval, Transform endModelTransform)
submode
- enum value (not null)blendInterval
- the duration of the blend interval (in seconds,
≥0)endModelTransform
- the desired local transform for the controlled
spatial when the blend completes or null for no change to local transform
(unaffected)public void cloneFields(Cloner cloner, java.lang.Object original)
Cloner
to convert this
shallow-cloned link into a deep-cloned one, using the specified cloner
and original to resolve copied fields.cloneFields
in interface JmeCloneable
cloneFields
in class PhysicsLink
cloner
- the cloner that's cloning this link (not null)original
- the instance from which this link was shallow-cloned
(unused)protected void dynamicUpdate()
dynamicUpdate
in class PhysicsLink
public TorsoLink jmeClone()
jmeClone
in interface JmeCloneable
jmeClone
in class PhysicsLink
protected void kinematicUpdate(float tpf)
kinematicUpdate
in class PhysicsLink
tpf
- the time interval between frames (in seconds, ≥0)public java.lang.String name()
name
in class PhysicsLink
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class PhysicsLink
im
- importer (not null)java.io.IOException
- from importerpublic void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
write
in class PhysicsLink
ex
- exporter (not null)java.io.IOException
- from exporter