Package aspect.util

Examples of aspect.util.Vector3.mag()


            if (rb2.ent == null) {
                ent.transform.position = ent.transform.position.plus(displacement);
            } else {
                Vector3 vt = va.plus(vb);
                float magt = vt.mag();
                if (magt == 0.0f) {
                    ent.transform.position = ent.transform.position.plus(displacement);
                } else {
                    float f1 = va.mag() / magt;
                    float f2 = 1.0f - f1;
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.