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 Summary
ConstructorDescriptionDeprecated.SpatialTrack
(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) Deprecated.Creates a spatial track for the given track data. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.Create a clone with the same track spatial.void
cloneFields
(Cloner cloner, Object original) Deprecated.Callback fromCloner
to 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.float
Deprecated.Deprecated.Vector3f[]
Deprecated.float[]
getTimes()
Deprecated.Deprecated.Vector3f[]
Deprecated.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.
-
Constructor Details
-
SpatialTrack
public SpatialTrack()Deprecated. -
SpatialTrack
public 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 frametranslations
- the translation of the bone for each framerotations
- the rotation of the bone for each framescales
- the scale of the bone for each frame
-
-
Method Details
-
setTime
public void setTime(float time, float weight, AnimControl control, AnimChannel channel, TempVars vars) Deprecated.Modify the spatial which this track modifies. -
setKeyframes
public 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 frametranslations
- the translation of the bone for each framerotations
- the rotation of the bone for each framescales
- the scale of the bone for each frame
-
getRotations
Deprecated.- Returns:
- the array of rotations of this track
-
getScales
Deprecated.- Returns:
- the array of scales for this track
-
getTimes
public float[] getTimes()Deprecated.- Returns:
- the arrays of time for this track
-
getTranslations
Deprecated.- Returns:
- the array of translations of this track
-
getLength
public float getLength()Deprecated. -
clone
Deprecated.Create a clone with the same track spatial. -
getKeyFrameTimes
public float[] getKeyFrameTimes()Deprecated.Description copied from interface:Track
Get 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:
getKeyFrameTimes
in interfaceTrack
- Returns:
- the keyframe times
-
setTrackSpatial
Deprecated. -
getTrackSpatial
Deprecated. -
jmeClone
Deprecated.Create a shallow clone for the JME cloner.- Specified by:
jmeClone
in interfaceJmeCloneable
- Returns:
- a new track
-
cloneFields
Deprecated.Callback fromCloner
to convert this shallow-cloned track into a deep-cloned one, using the specified cloner to resolve copied fields.- Specified by:
cloneFields
in interfaceJmeCloneable
- Parameters:
cloner
- the cloner currently cloning this control (not null)original
- the track from which this track was shallow-cloned (unused)
-
write
Deprecated.- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
Deprecated.- Specified by:
read
in interfaceSavable
- Throws:
IOException
-