Package net.rim.device.api.math

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


            // Determine if the sprite's bounds should be a box or a sphere
            if (bounds instanceof BoundingBox) {
                _originalBounds = new BoundingBox((BoundingBox) bounds);
                _bounds = new BoundingBox((BoundingBox) bounds);
            } else {
                _originalBounds = new BoundingSphere((BoundingSphere) bounds);
                _bounds = new BoundingSphere((BoundingSphere) bounds);
            }
        }

        _texcoords = texcoords;
        _textureString = texture;
View Full Code Here


            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));
            } else if (texture.equals("obstacle_spikewheel.png")) {
                bounds = new BoundingSphere(new Vector3f(), 0.75f);
            }

            enemy =
                    new Sprite(texture, bounds, new Vector3f(-11.0f + pos[0]
                            * 2.0f, -11.0f + pos[1] * 2.0f, 0.0f));
View Full Code Here

TOP

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

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.