AnimTrack
@Deprecated public final class BoneTrack extends java.lang.Object implements JmeCloneable, Track
Modifier | Constructor and Description |
---|---|
protected |
BoneTrack()
Deprecated.
Serialization-only.
|
|
BoneTrack(int targetBoneIndex)
Deprecated.
Creates a bone track for the given bone index
|
|
BoneTrack(int targetBoneIndex,
float[] times,
Vector3f[] translations,
Quaternion[] rotations)
Deprecated.
Creates a bone track for the given bone index
|
|
BoneTrack(int targetBoneIndex,
float[] times,
Vector3f[] translations,
Quaternion[] rotations,
Vector3f[] scales)
Deprecated.
Creates a bone track for the given bone index
|
Modifier and Type | Method and Description |
---|---|
BoneTrack |
clone()
Deprecated.
Create a deep clone of this track.
|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Deprecated.
Callback from
Cloner to convert this
shallow-cloned track into a deep-cloned one, using the specified cloner
to resolve copied fields. |
float[] |
getKeyFrameTimes()
Deprecated.
Get the times in seconds for all keyframes.
|
float |
getLength()
Deprecated.
|
Quaternion[] |
getRotations()
Deprecated.
return the array of rotations of this track
|
Vector3f[] |
getScales()
Deprecated.
returns the array of scales for this track
|
int |
getTargetBoneIndex()
Deprecated.
|
float[] |
getTimes()
Deprecated.
returns the arrays of time for this track
|
Vector3f[] |
getTranslations()
Deprecated.
returns the array of translations of this track
|
BoneTrack |
jmeClone()
Deprecated.
Create a shallow clone for the JME cloner.
|
void |
read(JmeImporter im)
Deprecated.
|
void |
setKeyframes(float[] times,
Vector3f[] translations,
Quaternion[] rotations)
Deprecated.
Set the translations and rotations for this bone track
|
void |
setKeyframes(float[] times,
Vector3f[] translations,
Quaternion[] rotations,
Vector3f[] scales)
Deprecated.
Set the translations, rotations and scales for this bone track
|
void |
setTime(float time,
float weight,
AnimControl control,
AnimChannel channel)
Deprecated.
|
void |
setTime(float time,
float weight,
AnimControl control,
AnimChannel channel,
TempVars vars)
Deprecated.
Modify the bone which this track modifies in the skeleton to contain
the correct animation transforms for a given time.
|
void |
write(JmeExporter ex)
Deprecated.
|
protected BoneTrack()
public BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations)
targetBoneIndex
- the bone indextimes
- a float array with the time of each frametranslations
- the translation of the bone for each framerotations
- the rotation of the bone for each framepublic BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales)
targetBoneIndex
- the bone indextimes
- a float array with the time of each frametranslations
- the translation of the bone for each framerotations
- the rotation of the bone for each framescales
- the scale of the bone for each framepublic BoneTrack(int targetBoneIndex)
targetBoneIndex
- the bone's indexpublic int getTargetBoneIndex()
public Quaternion[] getRotations()
public Vector3f[] getScales()
public float[] getTimes()
public Vector3f[] getTranslations()
public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations)
times
- the time of each frame, measured from the start of the track
(not null, length>0)translations
- the translation of the bone for each frame (not null,
same length as times)rotations
- the rotation of the bone for each frame (not null, same
length as times)public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales)
times
- the time of each frame, measured from the start of the track
(not null, length>0)translations
- the translation of the bone for each frame (not null,
same length as times)rotations
- the rotation of the bone for each frame (not null, same
length as times)scales
- the scale of the bone for each frame (ignored if null)public void setTime(float time, float weight, AnimControl control, AnimChannel channel, TempVars vars)
public float getLength()
public float[] getKeyFrameTimes()
Track
length
.
Modifying the provided array is not allowed, as it may corrupt internal
state.getKeyFrameTimes
in interface Track
public BoneTrack clone()
public BoneTrack jmeClone()
jmeClone
in interface JmeCloneable
public void cloneFields(Cloner cloner, java.lang.Object original)
Cloner
to convert this
shallow-cloned track into a deep-cloned one, using the specified cloner
to resolve copied fields.cloneFields
in interface JmeCloneable
cloner
- the cloner currently cloning this control (not null)original
- the track from which this track was shallow-cloned
(unused)public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
public void setTime(float time, float weight, AnimControl control, AnimChannel channel)