|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.animation.SpatialTrack
public class SpatialTrack
This class represents the track for spatial animation.
Constructor Summary | |
---|---|
SpatialTrack()
|
|
SpatialTrack(float[] times,
Vector3f[] translations,
Quaternion[] rotations,
Vector3f[] scales)
Creates a spatial track for the given track data. |
Method Summary | |
---|---|
SpatialTrack |
clone()
This method creates a clone of the current object. |
float |
getLength()
|
Quaternion[] |
getRotations()
|
Vector3f[] |
getScales()
|
float[] |
getTimes()
|
Vector3f[] |
getTranslations()
|
void |
read(JmeImporter im)
|
void |
setKeyframes(float[] times,
Vector3f[] translations,
Quaternion[] rotations,
Vector3f[] scales)
Set the translations, rotations and scales for this track. |
void |
setTime(float time,
float weight,
AnimControl control,
AnimChannel channel,
TempVars vars)
Modify the spatial which this track modifies. |
void |
write(JmeExporter ex)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpatialTrack()
public SpatialTrack(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 frameMethod Detail |
---|
public 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 from 0 to 1 on how much to apply the trackcontrol
- The control which the track should effectchannel
- The channel which the track should effectpublic 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 Quaternion[] getRotations()
public Vector3f[] getScales()
public float[] getTimes()
public Vector3f[] getTranslations()
public float getLength()
getLength
in interface Track
public SpatialTrack 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |