public final class AnimationComponent extends java.lang.Object implements IComponent
| Modifier and Type | Field and Description |
|---|---|
AnimGraph |
animGraph |
AsyncMotion[] |
motions |
| Constructor and Description |
|---|
AnimationComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOnMotionLoadListener(OnLoadListener<AsyncMotion[]> listener) |
GameObject |
getGameObject() |
void |
init(GameObject gameObject)
internal - don't call
|
void |
onActivate()
internal - don't call
|
void |
onDeactivate()
internal - don't call
|
void |
onDestroy()
internal - don't call
|
static void |
selectMotionOnLoad(ModelComponent model,
AnimationComponent animation,
int motionIndex)
Select a motion on asset load
|
void |
start()
internal - don't call
|
void |
update(long timePassedMs)
internal - don't call
|
public AsyncMotion[] motions
public AnimGraph animGraph
public final GameObject getGameObject()
getGameObject in interface IComponentGameObject this component is attached topublic final void init(GameObject gameObject)
init in interface IComponentpublic final void start()
start in interface IComponentpublic void onActivate()
onActivate in interface IComponentpublic void onDeactivate()
onDeactivate in interface IComponentpublic void onDestroy()
onDestroy in interface IComponentpublic final void update(long timePassedMs)
public void addOnMotionLoadListener(OnLoadListener<AsyncMotion[]> listener)
public static void selectMotionOnLoad(ModelComponent model, AnimationComponent animation, int motionIndex)
model - a ModelComponentanimation - a AnimationComponentmotionIndex - index of the motion in motionsBonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com