Examples of fromStartEndLocal()


Examples of com.ardor3d.math.Matrix3.fromStartEndLocal()

        top.add(bottom, localTranslation).multiplyLocal(.5);

        // rotation that takes us from 0,1,0 to the unit vector described by top/center.
        top.subtract(localTranslation, capsuleUp).normalizeLocal();
        final Matrix3 rotation = Matrix3.fetchTempInstance();
        rotation.fromStartEndLocal(Vector3.UNIT_Y, capsuleUp);
        _localTransform.setRotation(rotation);

        Vector3.releaseTempInstance(localTranslation);
        Vector3.releaseTempInstance(capsuleUp);
        Matrix3.releaseTempInstance(rotation);
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.