Examples of SpatialTrack


Examples of com.jme3.animation.SpatialTrack

     */
    public SpatialTrack getAsSpatialTrack() {
        if (translations == null && rotations == null && scales == null) {
            return null;
        }
        return new SpatialTrack(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.SpatialTrack

                translations[index] = localRotation.multLocal(new Vector3f(translation[0], translation[1], translation[2]));
                rotations[index] = spatialTrack ? new Quaternion().fromAngles(objectRotation) : new Quaternion(quaternionRotation[0], quaternionRotation[1], quaternionRotation[2], quaternionRotation[3]);
                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
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.