@Deprecated public class SpatialTrack extends java.lang.Object implements JmeCloneable, Track
| Constructor and Description |
|---|
SpatialTrack()
Deprecated.
|
SpatialTrack(float[] times,
Vector3f[] translations,
Quaternion[] rotations,
Vector3f[] scales)
Deprecated.
Creates a spatial track for the given track data.
|
| Modifier and Type | Method and Description |
|---|---|
SpatialTrack |
clone()
Deprecated.
Create a clone with the same track spatial.
|
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.
|
Vector3f[] |
getScales()
Deprecated.
|
float[] |
getTimes()
Deprecated.
|
Spatial |
getTrackSpatial()
Deprecated.
|
Vector3f[] |
getTranslations()
Deprecated.
|
SpatialTrack |
jmeClone()
Deprecated.
Create a shallow clone for the JME cloner.
|
void |
read(JmeImporter im)
Deprecated.
|
void |
setKeyframes(float[] times,
Vector3f[] translations,
Quaternion[] rotations,
Vector3f[] scales)
Deprecated.
Set the translations, rotations and scales for this track.
|
void |
setTime(float time,
float weight,
AnimControl control,
AnimChannel channel,
TempVars vars)
Deprecated.
Modify the spatial which this track modifies.
|
void |
setTrackSpatial(Spatial trackSpatial)
Deprecated.
|
void |
write(JmeExporter ex)
Deprecated.
|
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 framepublic void setTime(float time,
float weight,
AnimControl control,
AnimChannel channel,
TempVars vars)
public 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()
public SpatialTrack clone()
public float[] getKeyFrameTimes()
Tracklength.
Modifying the provided array is not allowed, as it may corrupt internal
state.getKeyFrameTimes in interface Trackpublic void setTrackSpatial(Spatial trackSpatial)
public Spatial getTrackSpatial()
public SpatialTrack jmeClone()
jmeClone in interface JmeCloneablepublic 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 JmeCloneablecloner - 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