Class SpatialTrack

java.lang.Object
com.jme3.animation.SpatialTrack
All Implemented Interfaces:
Track, Savable, JmeCloneable, Cloneable

@Deprecated public class SpatialTrack extends Object implements JmeCloneable, Track
Deprecated.
This class represents the track for spatial animation.
  • 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 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

    • setTime

      public void setTime(float time, float weight, AnimControl control, AnimChannel channel, TempVars vars)
      Deprecated.
      Modify the spatial which this track modifies.
      Specified by:
      setTime in interface Track
      Parameters:
      time - the current time of the animation
      weight - The weight from 0 to 1 on how much to apply the track
      control - The control which the track should affect
      channel - The channel which the track should affect
      vars - temporary storage
    • 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 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
    • getRotations

      public Quaternion[] getRotations()
      Deprecated.
      Returns:
      the array of rotations of this track
    • getScales

      public Vector3f[] getScales()
      Deprecated.
      Returns:
      the array of scales for this track
    • getTimes

      public float[] getTimes()
      Deprecated.
      Returns:
      the arrays of time for this track
    • getTranslations

      public Vector3f[] getTranslations()
      Deprecated.
      Returns:
      the array of translations of this track
    • getLength

      public float getLength()
      Deprecated.
      Specified by:
      getLength in interface Track
      Returns:
      the length of the track
    • clone

      public SpatialTrack clone()
      Deprecated.
      Create a clone with the same track spatial.
      Specified by:
      clone in interface Track
      Overrides:
      clone in class Object
      Returns:
      a new track
    • 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 and length. Modifying the provided array is not allowed, as it may corrupt internal state.
      Specified by:
      getKeyFrameTimes in interface Track
      Returns:
      the keyframe times
    • setTrackSpatial

      public void setTrackSpatial(Spatial trackSpatial)
      Deprecated.
    • getTrackSpatial

      public Spatial getTrackSpatial()
      Deprecated.
    • jmeClone

      public SpatialTrack jmeClone()
      Deprecated.
      Create a shallow clone for the JME cloner.
      Specified by:
      jmeClone in interface JmeCloneable
      Returns:
      a new track
    • cloneFields

      public void cloneFields(Cloner cloner, 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.
      Specified by:
      cloneFields in interface JmeCloneable
      Parameters:
      cloner - the cloner currently cloning this control (not null)
      original - the track from which this track was shallow-cloned (unused)
    • write

      public void write(JmeExporter ex) throws IOException
      Deprecated.
      Specified by:
      write in interface Savable
      Throws:
      IOException
    • read

      public void read(JmeImporter im) throws IOException
      Deprecated.
      Specified by:
      read in interface Savable
      Throws:
      IOException