APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.graphics.g3d.model

public Class NodeAnimation

extends Object
Class Inheritance
Imports
com.badlogic.gdx.graphics.g3d.Model, com.badlogic.gdx.math.Quaternion, .Vector3, com.badlogic.gdx.utils.Array

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.
Author
badlogic, Xoppa

Field Summary

Modifier and TypeField and Description
public Node
node

the Node affected by this animation

public Array<NodeKeyframe<Quaternion>>
rotation

the rotation keyframes if any (might be null), sorted by time ascending

public Array<NodeKeyframe<Vector3>>
scaling

the scaling keyframes if any (might be null), sorted by time ascending

public Array<NodeKeyframe<Vector3>>
translation

the translation keyframes if any (might be null), sorted by time ascending

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nodeback to summary
public Node node

the Node affected by this animation

rotationback to summary
public Array<NodeKeyframe<Quaternion>> rotation

the rotation keyframes if any (might be null), sorted by time ascending

scalingback to summary
public Array<NodeKeyframe<Vector3>> scaling

the scaling keyframes if any (might be null), sorted by time ascending

translationback to summary
public Array<NodeKeyframe<Vector3>> translation

the translation keyframes if any (might be null), sorted by time ascending

Constructor Detail

NodeAnimationback to summary
public NodeAnimation()