Class NodeAnimation

java.lang.Object
com.badlogic.gdx.graphics.g3d.model.NodeAnimation

public class NodeAnimation extends Object
A NodeAnimation defines keyframes for a Node in a Model. 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 Details

    • node

      public Node node
      the Node affected by this animation
    • translation

      public Array<NodeKeyframe<Vector3>> translation
      the translation keyframes if any (might be null), sorted by time ascending
    • rotation

      public Array<NodeKeyframe<Quaternion>> rotation
      the rotation keyframes if any (might be null), sorted by time ascending
    • scaling

      public Array<NodeKeyframe<Vector3>> scaling
      the scaling keyframes if any (might be null), sorted by time ascending
  • Constructor Details

    • NodeAnimation

      public NodeAnimation()