Examples of BoneTrack


Examples of com.jme3.animation.BoneTrack

     */
    public BoneTrack getAsBoneTrack(int targetBoneIndex) {
        if (translations == null && rotations == null && scales == null) {
            return null;
        }
        return new BoneTrack(targetBoneIndex, this.createTimes(), translations.toArray(new Vector3f[maxFrame]), rotations.toArray(new Quaternion[maxFrame]), scales.toArray(new Vector3f[maxFrame]));
    }
View Full Code Here

Examples of com.jme3.animation.BoneTrack

                scales[index] = new Vector3f(scale[0], scale[1], scale[2]);
            }
            if (spatialTrack) {
                calculatedTrack = new SpatialTrack(times, translations, rotations, scales);
            } else {
                calculatedTrack = new BoneTrack(targetIndex, times, translations, rotations, scales);
            }
        }
        return calculatedTrack;
    }
View Full Code Here

Examples of com.jme3.animation.BoneTrack

        } else if (qName.equals("track")) {
            assert elementStack.peek().equals("tracks");
            String boneName = SAXUtil.parseString(attribs.getValue("bone"));
            Bone bone = nameToBone.get(boneName);
            int index = skeleton.getBoneIndex(bone);
            track = new BoneTrack(index);
        } else if (qName.equals("boneparent")) {
            assert elementStack.peek().equals("bonehierarchy");
            String boneName = attribs.getValue("bone");
            String parentName = attribs.getValue("parent");
            Bone bone = nameToBone.get(boneName);
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.