The ninja character that comes with the jme3 works well but I’d like to enable to ninja to switch weapons, prefeably to a nun-chaku or likewise. Is that even feasible or must I use a complete new model and the ninja model is just a demo? Is there any way to model the ninja in jme3 sdk, in blender or other way so that I can make it switch weapons?[java]
private void createNinja() {
ninjaNode = (Node) assetManager
.loadModel("Models/Ninja/Ninja.mesh.xml");
ninjaNode.setShadowMode(RenderQueue.ShadowMode.CastAndReceive);
ninjaNode.setLocalScale(0.06f);
ninjaNode.setLocalTranslation(new Vector3f(55, 3.3f, -60));
ninjaControl = new GameCharControl(1.6f, 9f, 25);// (2, 4, 0.5f);
// radius (meters), height (meters),
// gravity (mass)
ninjaControl.setJumpForce(new Vector3f(0, 2800, 0));
ninjaNode.addControl(ninjaControl);
rootNode.attachChild(ninjaNode);
bulletAppState.getPhysicsSpace().add(ninjaControl);
getPhysicsSpace().add(ninjaControl);
animationControl = ninjaNode.getControl(AnimControl.class);
animationChannel = animationControl.createChannel();
for (String anim : animationControl.getAnimationNames())
System.out.println("Ninja can:" + anim);
}[/java]