public class AnimNode extends GraphNode
| Constructor and Description |
|---|
AnimNode() |
| Modifier and Type | Method and Description |
|---|---|
protected GraphNode |
cloneNoInputs() |
protected void |
doUpdateState(AnimGraph animGraph,
java.lang.Object context) |
protected Timeline |
doUpdateTime(AnimGraph animGraph,
Timeline parentTimeline,
long timePassedMs) |
java.lang.String |
getAnimationName() |
Animation |
getCurrentAnimation()
For internal use, we recommend to use
getAnimationName() |
float |
getCurrentSpeed() |
double |
getCurrentTime() |
float |
getCurrentWeight() |
protected Transform[] |
getPose(AnimGraph grap,
Model model) |
protected void |
getTargets(AnimGraph graph,
Model model,
java.util.HashMap<java.lang.String,Percent> targetWeightMap,
float propagatedWeight) |
double |
getTimelineTime(float trackTime) |
AnimationTrack |
getTrack() |
boolean |
isInputActive(int inputIndex) |
boolean |
isTrackActive() |
void |
setAnimationName(java.lang.String animationName) |
void |
setTrack(AnimationTrack track) |
protected void |
syncAnimation() |
addInput, cloneNoInputs, getInput, getInput, getInputName, getName, getNumInputs, isActive, onActiveChanged, onNumInputsChanged, removeInput, removeInput, setActive, setInput, setInputName, setName, setNumInputs, toString, updateActive, updateTime, visitprotected GraphNode cloneNoInputs()
cloneNoInputs in class GraphNodeprotected void doUpdateState(AnimGraph animGraph, java.lang.Object context)
doUpdateState in class GraphNodepublic boolean isInputActive(int inputIndex)
isInputActive in class GraphNodeGraphNode.isActive().GraphNode.isActive() and GraphNode.isInputActive(int) returns true.GraphNode.isActive()protected final Timeline doUpdateTime(AnimGraph animGraph, Timeline parentTimeline, long timePassedMs)
doUpdateTime in class GraphNodeprotected void getTargets(AnimGraph graph, Model model, java.util.HashMap<java.lang.String,Percent> targetWeightMap, float propagatedWeight)
getTargets in class GraphNodepublic double getTimelineTime(float trackTime)
trackTime - AnimationTrack timeTimelinepublic final void setTrack(AnimationTrack track)
public final AnimationTrack getTrack()
public void setAnimationName(java.lang.String animationName)
public final java.lang.String getAnimationName()
protected final void syncAnimation()
public Animation getCurrentAnimation()
getAnimationName()Animation corresponding to the specified animation name.getAnimationName() and look into the Model
to get the Animation reference.setAnimationName(String),
getAnimationName()public final double getCurrentTime()
public final float getCurrentWeight()
public final float getCurrentSpeed()
public final boolean isTrackActive()
AnimationContext as a non 0 weight and a valid animation timeBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com