Package com.jme3.animation

Examples of com.jme3.animation.AnimControl.createChannel()


        AnimControl animControl = vis.getControl(AnimControl.class);
        AnimChannel chan;
        if(animControl != null) {
         
          if (animControl.getNumChannels()<=0){
            animControl.createChannel();
          }
          chan = animControl.getChannel(0);
            chan.setAnim("idle");
            chan.setTime(animControl.getAnimationLength("idle")
            * FastMath.nextRandomFloat());
 
View Full Code Here


            }
           
            Skeleton skel = new Skeleton(skeleton);
          //TODO move this out into AnimationManger
      AnimControl c = new AnimControl(skel);//skeleton, animParts, template
      c.createChannel();
      c.setAnimationProvider(Singleton.get().getAnimManager().getAnimationProvider(animSet));
            model.addControl(new JMEAnimationController(c,animSet));
            SkeletonControl skeletonControl = new SkeletonControl(skel);
            model.addControl(skeletonControl);
View Full Code Here

        DirectionalLight sun = new DirectionalLight();
        sun.setDirection(new Vector3f(-0.1f, -0.7f, -1.0f).normalizeLocal());
        rootNode.addLight(sun);
       
      AnimControl c = (AnimControl)rootNode.getChild(0).getControl(0);
      c.createChannel();
      final JMESimpleController con = new JMESimpleController(c);
      rootNode.getChild(0).addControl(con);

      if(con!= null ){
        SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.