|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.animation.BoneTrack
public final class BoneTrack
Contains a list of transforms and times for each keyframe.
Constructor Summary | |
---|---|
BoneTrack()
Serialization-only. |
|
BoneTrack(int targetBoneIndex)
Creates a bone track for the given bone index |
|
BoneTrack(int targetBoneIndex,
float[] times,
Vector3f[] translations,
Quaternion[] rotations)
Creates a bone track for the given bone index |
|
BoneTrack(int targetBoneIndex,
float[] times,
Vector3f[] translations,
Quaternion[] rotations,
Vector3f[] scales)
Creates a bone track for the given bone index |
Method Summary | |
---|---|
BoneTrack |
clone()
This method creates a clone of the current object. |
float |
getLength()
|
Quaternion[] |
getRotations()
return the array of rotations of this track |
Vector3f[] |
getScales()
returns the array of scales for this track |
int |
getTargetBoneIndex()
|
float[] |
getTimes()
returns the arrays of time for this track |
Vector3f[] |
getTranslations()
returns the array of translations of this track |
void |
read(JmeImporter im)
|
void |
setKeyframes(float[] times,
Vector3f[] translations,
Quaternion[] rotations)
Set the translations and rotations for this bone track |
void |
setKeyframes(float[] times,
Vector3f[] translations,
Quaternion[] rotations,
Vector3f[] scales)
Set the translations, rotations and scales for this bone track |
void |
setTime(float time,
float weight,
AnimControl control,
AnimChannel channel)
|
void |
setTime(float time,
float weight,
AnimControl control,
AnimChannel channel,
TempVars vars)
Modify the bone which this track modifies in the skeleton to contain the correct animation transforms for a given time. |
void |
write(JmeExporter ex)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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 indexMethod Detail |
---|
public int getTargetBoneIndex()
public Quaternion[] getRotations()
public Vector3f[] getScales()
public float[] getTimes()
public Vector3f[] getTranslations()
public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations)
times
- 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 void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales)
times
- 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 void setTime(float time, float weight, AnimControl control, AnimChannel channel, TempVars vars)
setTime
in interface Track
time
- the current time of the animationweight
- the weight of the animationcontrol
- channel
- vars
- public float getLength()
getLength
in interface Track
public BoneTrack clone()
clone
in interface Track
clone
in class java.lang.Object
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
java.io.IOException
public void setTime(float time, float weight, AnimControl control, AnimChannel channel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |