Package com.jme.scene.shape

Examples of com.jme.scene.shape.Sphere


        // for collision. These are hardcoded values for now.
        Vector3f origin = new Vector3f(0f, 0.57f, 0.0f);
        float radius = 0.25f;

        if (selectedForInput) {      
            Spatial collisionGraph = new Sphere("AvatarCollision", origin, 10, 10, radius);
           
            collisionGraph.setModelBound(new BoundingBox());
            collisionGraph.updateModelBound();

            // Fetch the JME Collision system using the server manager of the Cell
            // to which this renderer is attached.
            ServerSessionManager manager =
                    cell.getCellCache().getSession().getSessionManager();
View Full Code Here


        tankHUD.setLocalTranslation(new Vector3f(display.getWidth() / 2f - 8f,
            30, 0));
        tankHUD.print("yaw: "+ currentYaw+ "\npitch: "+ currentPitch +"\npower:"+Vm);
        hitStatus.setLocalTranslation(new Vector3f(display.getWidth() / 2f - 8f,
            60, 0));
    target = new Sphere("my sphere", 15, 15, 1);
    target.setModelBound(new BoundingSphere());
    target.updateModelBound();
        target.setLocalTranslation(new Vector3f(r.nextFloat() * 10, r
        .nextFloat() * 10, r.nextFloat() * 10));
       
View Full Code Here

            30, 0));
       
        tankHUD.print("yaw: "+ currentYaw+ " pitch: "+ currentPitch +" power:"+Vm);
        hitStatus.setLocalTranslation(new Vector3f(this.getWidth() / 2f - 8f,
            60, 0));
    target = new Sphere("my sphere", 15, 15, 1);
    target.setModelBound(new BoundingSphere());
    target.updateModelBound();
        target.setLocalTranslation(new Vector3f(r.nextFloat() * 10, r
        .nextFloat() * 10, r.nextFloat() * 10));
       
View Full Code Here

TOP

Related Classes of com.jme.scene.shape.Sphere

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.