Package com.jme.math

Examples of com.jme.math.Vector2f.subtractLocal()


     */
    public synchronized void userMovePlanarUpdate (Vector2f dragVector) {
       
        // Calculate the delta of the movement since the last update
        Vector2f deltaDragVector = dragVector.clone();
        deltaDragVector.subtractLocal(userMovePlanarDragVectorPrev);
        userMovePlanarDragVectorPrev = dragVector;

        applyDeltaTranslationUser(new Vector3f(deltaDragVector.x, deltaDragVector.y, 0f), true);
    }

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.