Package net.rim.device.api.math

Examples of net.rim.device.api.math.Bounds


     *
     * @return 0 if the level is still active, -1 if the level has been lost and
     *         1 if the level has been won.
     */
    private int detectCollisions() {
        Bounds boundsLevel;

        final BoundingBox bounds = (BoundingBox) _character.getBounds();
        final BoundingBox prevBounds = (BoundingBox) _character.getPrevBounds();

        // Get the character's corners
View Full Code Here


                scale = Float.parseFloat(scaleStr);
            }

            // Create the enemy
            Sprite enemy;
            Bounds bounds = null;

            if (texture.equals("obstacle_ball.png")) {
                bounds =
                        new BoundingBox(new Vector3f(-0.9f, -0.9f, 0.0f),
                                new Vector3f(0.9f, 0.9f, 0.0f));
View Full Code Here

TOP

Related Classes of net.rim.device.api.math.Bounds

Copyright © 2018 www.massapicom. 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.