Package com.jme3.animation
Interface ClonableTrack
- All Superinterfaces:
Cloneable
,JmeCloneable
,Savable
,Track
- All Known Implementing Classes:
AudioTrack
,EffectTrack
Deprecated.
An interface that allow to clone a Track for a given Spatial.
The spatial fed to the method is the Spatial holding the AnimControl controlling the Animation using this track.
Implement this interface only if you make your own Savable Track and that the track has a direct reference to a Spatial in the scene graph.
This Spatial is assumed to be a child of the spatial holding the AnimControl.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp()
Deprecated.Method responsible for cleaning UserData on referenced Spatials when the Track is deletedcloneForSpatial
(Spatial spatial) Deprecated.Allows to clone the track for a given Spatial.Methods inherited from interface com.jme3.util.clone.JmeCloneable
cloneFields, jmeClone
Methods inherited from interface com.jme3.animation.Track
clone, getKeyFrameTimes, getLength, setTime
-
Method Details
-
cloneForSpatial
Deprecated.Allows to clone the track for a given Spatial. The spatial fed to the method is the Spatial holding the AnimControl controlling the Animation using this track. This method will be called during the loading process of a j3o model by the assetManager. The assetManager keeps the original model in cache and returns a clone of the model. This method purpose is to find the cloned reference of the original spatial which it refers to in the cloned model. See EffectTrack for a proper implementation.- Parameters:
spatial
- the spatial holding the AnimControl- Returns:
- the cloned Track
-
cleanUp
void cleanUp()Deprecated.Method responsible for cleaning UserData on referenced Spatials when the Track is deleted
-