Class IntNodeAnimation

java.lang.Object
gaiasky.util.gdx.model.IntNodeAnimation

public class IntNodeAnimation extends Object
A NodeAnimation defines keyframes for a IntNode in a IntModel. The keyframes are given as a translation vector, a rotation quaternion and a scale vector. Keyframes are interpolated linearly for now. Keytimes are given in seconds.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    the Node affected by this animation
    com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g3d.model.NodeKeyframe<com.badlogic.gdx.math.Quaternion>>
    the rotation keyframes if any (might be null), sorted by time ascending
    com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g3d.model.NodeKeyframe<com.badlogic.gdx.math.Vector3>>
    the scaling keyframes if any (might be null), sorted by time ascending
    com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g3d.model.NodeKeyframe<com.badlogic.gdx.math.Vector3>>
    the translation keyframes if any (might be null), sorted by time ascending
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • node

      public IntNode node
      the Node affected by this animation
    • translation

      public com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g3d.model.NodeKeyframe<com.badlogic.gdx.math.Vector3>> translation
      the translation keyframes if any (might be null), sorted by time ascending
    • rotation

      public com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g3d.model.NodeKeyframe<com.badlogic.gdx.math.Quaternion>> rotation
      the rotation keyframes if any (might be null), sorted by time ascending
    • scaling

      public com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g3d.model.NodeKeyframe<com.badlogic.gdx.math.Vector3>> scaling
      the scaling keyframes if any (might be null), sorted by time ascending
  • Constructor Details

    • IntNodeAnimation

      public IntNodeAnimation()