Examples of antiNormal()


Examples of engine.geometry.Vector.antiNormal()

                Vector move = new Vector(velocity).multiply(result.time);
                Transform.translate(position, move);

                // Calculate new velocity
                Vector normal = new Vector(result.getBestNormal(velocity));
                velocity.project(normal.antiNormal());

                // Time used up
                timeToGo -= result.time;
                if (Rough.lessEqual(timeToGo, 0)) {
                    // Done!
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.