【发布时间】:2015-03-13 06:49:55
【问题描述】:
我有一个具有许多不同动画的搅拌机模型。我正在尝试使用步行动画。
AnimControl control = characterNode.getControl(AnimControl.class);
control.addListener(new AnimEventListener() {
//empty event listener methods are in here
channel = control.createChannel();
channel.setAnim("walk");
我得到一个 NullPointerException
Uncaught exception thrown in Thread[LWJGL Renderer Thread, 5,main]
我认为这与 AnimControl.class 为空有关。任何事情都有帮助。提前致谢
【问题讨论】:
标签: java animation nullpointerexception controls jmonkeyengine