/** * This method sets the current time of the animation. * This method behaves differently for every known track type. * Override this method if you have your own type of track. * * @param time the time of the animation * @param blendAmount the blend amount factor * @param control the animation control * @param channel the animation channel */ void setTime(float time, float blendAmount, AnimControl control, AnimChannel channel, TempVars vars) { if (tracks == null) { return; } for (Track track : tracks) { track.setTime(time, blendAmount, control, channel, vars); } }
/** * This method creates a clone of the current object. * @return a clone of the current object */ @Override public Animation clone() { try { Animation result = (Animation) super.clone(); result.tracks = new SafeArrayList<Track>(Track.class); for (Track track : tracks) { result.tracks.add(track.clone()); } return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }
track.setTime(time, 1, animControl, animChannel, vars); skeleton.updateWorldVectors();
/** * This method creates a clone of the current object. * @return a clone of the current object */ @Override public Animation clone() { try { Animation result = (Animation) super.clone(); result.tracks = new SafeArrayList<Track>(Track.class); for (Track track : tracks) { result.tracks.add(track.clone()); } return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }
/** * This method sets the current time of the animation. * This method behaves differently for every known track type. * Override this method if you have your own type of track. * * @param time the time of the animation * @param blendAmount the blend amount factor * @param control the animation control * @param channel the animation channel */ void setTime(float time, float blendAmount, AnimControl control, AnimChannel channel, TempVars vars) { if (tracks == null) { return; } for (Track track : tracks) { track.setTime(time, blendAmount, control, channel, vars); } }
/** * This method creates a clone of the current object. * @return a clone of the current object */ @Override public Animation clone() { try { Animation result = (Animation) super.clone(); result.tracks = new SafeArrayList<Track>(Track.class); for (Track track : tracks) { result.tracks.add(track.clone()); } return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }
/** * This method sets the current time of the animation. * This method behaves differently for every known track type. * Override this method if you have your own type of track. * * @param time the time of the animation * @param blendAmount the blend amount factor * @param control the animation control * @param channel the animation channel */ void setTime(float time, float blendAmount, AnimControl control, AnimChannel channel, TempVars vars) { if (tracks == null) { return; } for (Track track : tracks) { track.setTime(time, blendAmount, control, channel, vars); } }