Package org.jdesktop.mtgame

Examples of org.jdesktop.mtgame.CollisionSystem


                rc.setSceneRoot(rootNode);
            }

            // TODO: shouldn't this just be a call to adjustCollisionSystem()?
            WonderlandSession session = cell.getCellCache().getSession();
            CollisionSystem collisionSystem = ClientContextJME.getCollisionSystem(session.getSessionManager(), "Default");


            CollisionComponent cc=null;

            cc = setupCollision(collisionSystem, rootNode);
View Full Code Here


        if (collisionEnabled==false && pickingEnabled==false && cc!=null)
            entity.removeComponent(CollisionComponent.class);

        if (cc==null) {
            WonderlandSession session = cell.getCellCache().getSession();
            CollisionSystem collisionSystem = ClientContextJME.getCollisionSystem(session.getSessionManager(), "Default");
            cc = setupCollision(collisionSystem, rootNode);
            entity.addComponent(CollisionComponent.class, cc);
            return;
        }
View Full Code Here

        ServerSessionManager lm = LoginManager.getSessionManager(serverURL);

        // Register physics and phyiscs collision systems for this session
        WorldManager worldManager = ClientContextJME.getWorldManager();
        CollisionManager collisionManager = worldManager.getCollisionManager();
        CollisionSystem collisionSystem = collisionManager.loadCollisionSystem(
                JBulletDynamicCollisionSystem.class);
        JBulletDynamicCollisionSystem jBulletCollisionSystem =
                (JBulletDynamicCollisionSystem) collisionSystem;
        PhysicsManager physicsManager = worldManager.getPhysicsManager();
        JBulletPhysicsSystem jBulletPhysicsSystem =
View Full Code Here

            // Fetch the JME Collision system using the server manager of the Cell
            // to which this renderer is attached.
            ServerSessionManager manager =
                    cell.getCellCache().getSession().getSessionManager();
            CollisionSystem collisionSystem =
                    ClientContextJME.getCollisionSystem(manager, "Default");

            // Create a new collision controller, and set on the avatar
            CollisionController controller = new CollisionController(collisionGraph,
                    (JMECollisionSystem) collisionSystem);
View Full Code Here

TOP

Related Classes of org.jdesktop.mtgame.CollisionSystem

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.