Examples of PickDetails


Examples of org.jdesktop.mtgame.PickDetails

        // Use the given collision system to find where the closest collidable
        // object is.
        PickInfo pi = collision.pickAllWorldRay(heightRay, true, false);
        if (pi.size() != 0) {
            // Grab the first one
            PickDetails pd = pi.get(0);
            return pd.getDistance();
        }

        // Otherwise, if we did not find any ground, then return -1
        return -1;
    }
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.