Package com.ardor3d.math

Examples of com.ardor3d.math.Vector3.subtract()


            }

            final double dist = tracer.getTotalTraveled();
            // look at where we are and switch to the next cliplevel if needed
            final Vector3 loc = new Vector3(_workRay.getDirection()).multiplyLocal(dist).addLocal(_workRay.getOrigin());
            final int newIndex = findClipIndex(loc.subtract(_workEyePos, null));
            // simple test to see if our next level at least has SOME data. XXX: could look to the tile level.
            if (newIndex != index && _clipmapLevels.get(index).isReady()) {
                _workRay.setOrigin(loc);
                index = newIndex;
                tracer = _tracers.get(index);
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.