Class AnimatedModel


  • public class AnimatedModel
    extends Model
    • Constructor Detail

      • AnimatedModel

        public AnimatedModel​(Mesh[] meshes,
                             Joint skeleton,
                             HashMap<String,​Animation> animations)
        Creating new animated model
        Parameters:
        meshes - Meshes of the model
        skeleton - Skeleton blueprint for animated entities
        animations - Animations that can be played by this model
    • Method Detail

      • getNewSkeletonInstance

        public Joint getNewSkeletonInstance()
        Creating a new instanceof the skeleton of this model. So every entity can have its own skeleton, for individual animation poses
        Returns:
        New skeleton instance
      • getAnimations

        public HashMap<String,​Animation> getAnimations()
        Returns:
        Animations that can be played by this model