|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.animation.BoneTrack
public final class BoneTrack
Contains a list of transforms and times for each keyframe.
コンストラクタの概要 | |
---|---|
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 |
メソッドの概要 | |
---|---|
Quaternion[] |
getRotations()
return the array of rotations of this track |
Vector3f[] |
getScales()
returns the array of scales for this track |
int |
getTargetBoneIndex()
returns the bone index of this bone track |
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,
Skeleton skeleton,
float weight)
Modify the bone which this track modifies in the skeleton to contain the correct animation transforms for a given time. |
void |
write(JmeExporter ex)
|
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
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 indexメソッドの詳細 |
---|
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, Skeleton skeleton, float weight)
time
- the current time of the animationskeleton
- the skeleton to which the bone belongweight
- the weight of the animationpublic void write(JmeExporter ex) throws java.io.IOException
Savable
内の write
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
Savable
内の read
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |