Package com.jme3.animation
Class SpatialTrack
java.lang.Object
com.jme3.animation.SpatialTrack
- All Implemented Interfaces:
- Track,- Savable,- JmeCloneable,- Cloneable
Deprecated.
This class represents the track for spatial animation.
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.SpatialTrack(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) Deprecated.Creates a spatial track for the given track data.
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.Create a clone with the same track spatial.voidcloneFields(Cloner cloner, Object original) Deprecated.Callback fromClonerto convert this shallow-cloned track into a deep-cloned one, using the specified cloner to resolve copied fields.float[]Deprecated.Get the times in seconds for all keyframes.floatDeprecated.Deprecated.Vector3f[]Deprecated.float[]getTimes()Deprecated.Deprecated.Vector3f[]Deprecated.jmeClone()Deprecated.Create a shallow clone for the JME cloner.voidread(JmeImporter im) Deprecated.voidsetKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) Deprecated.Set the translations, rotations and scales for this track.voidsetTime(float time, float weight, AnimControl control, AnimChannel channel, TempVars vars) Deprecated.Modify the spatial which this track modifies.voidsetTrackSpatial(Spatial trackSpatial) Deprecated.voidwrite(JmeExporter ex) Deprecated.
- 
Constructor Details- 
SpatialTrackpublic SpatialTrack()Deprecated.
- 
SpatialTrackpublic SpatialTrack(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) Deprecated.Creates a spatial track for the given track data.- Parameters:
- times- a float array with the time of each frame
- translations- the translation of the bone for each frame
- rotations- the rotation of the bone for each frame
- scales- the scale of the bone for each frame
 
 
- 
- 
Method Details- 
setTimepublic void setTime(float time, float weight, AnimControl control, AnimChannel channel, TempVars vars) Deprecated.Modify the spatial which this track modifies.
- 
setKeyframespublic void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) Deprecated.Set the translations, rotations and scales for this track.- Parameters:
- times- a float array with the time of each frame
- translations- the translation of the bone for each frame
- rotations- the rotation of the bone for each frame
- scales- the scale of the bone for each frame
 
- 
getRotationsDeprecated.- Returns:
- the array of rotations of this track
 
- 
getScalesDeprecated.- Returns:
- the array of scales for this track
 
- 
getTimespublic float[] getTimes()Deprecated.- Returns:
- the arrays of time for this track
 
- 
getTranslationsDeprecated.- Returns:
- the array of translations of this track
 
- 
getLengthpublic float getLength()Deprecated.
- 
cloneDeprecated.Create a clone with the same track spatial.
- 
getKeyFrameTimespublic float[] getKeyFrameTimes()Deprecated.Description copied from interface:TrackGet the times in seconds for all keyframes. All keyframe times should be between 0.0 andlength. Modifying the provided array is not allowed, as it may corrupt internal state.- Specified by:
- getKeyFrameTimesin interface- Track
- Returns:
- the keyframe times
 
- 
setTrackSpatialDeprecated.
- 
getTrackSpatialDeprecated.
- 
jmeCloneDeprecated.Create a shallow clone for the JME cloner.- Specified by:
- jmeClonein interface- JmeCloneable
- Returns:
- a new track
 
- 
cloneFieldsDeprecated.Callback fromClonerto convert this shallow-cloned track into a deep-cloned one, using the specified cloner to resolve copied fields.- Specified by:
- cloneFieldsin interface- JmeCloneable
- Parameters:
- cloner- the cloner currently cloning this control (not null)
- original- the track from which this track was shallow-cloned (unused)
 
- 
writeDeprecated.- Specified by:
- writein interface- Savable
- Throws:
- IOException
 
- 
readDeprecated.- Specified by:
- readin interface- Savable
- Throws:
- IOException
 
 
-