Package org.jdesktop.mtgame

Examples of org.jdesktop.mtgame.CollisionManager


    /**
     * Create a new instance of InputPicker.
     */
    protected InputPicker () {
  CollisionManager cm = ClientContextJME.getWorldManager().getCollisionManager();
  collisionSys = (JMECollisionSystem) cm.loadCollisionSystem(JMECollisionSystem.class);
    }
View Full Code Here


        // get the login manager for the given server
        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 =
                (JBulletPhysicsSystem) physicsManager.loadPhysicsSystem(
                JBulletPhysicsSystem.class, jBulletCollisionSystem);
        ClientContextJME.addCollisionSystem(
                lm, "Physics", jBulletCollisionSystem);
        ClientContextJME.addPhysicsSystem(lm, "Physics", jBulletPhysicsSystem);

        // Register default collision system for this session
        JMECollisionSystem jmeCollisionSystem =
                (JMECollisionSystem) collisionManager.loadCollisionSystem(
                JMECollisionSystem.class);
        ClientContextJME.addCollisionSystem(lm, "Default", jmeCollisionSystem);

        // set the initial position, which will bne sent with the initial
        // connection properties of the cell cache connection
View Full Code Here

    private Quaternion avatarRot = new Quaternion();
   
    public ThirdPersonCameraProcessor() {
        wm = ClientContextJME.getWorldManager();
       
        CollisionManager cm = ClientContextJME.getWorldManager().getCollisionManager();
  collisionSys = (JMECollisionSystem) cm.loadCollisionSystem(JMECollisionSystem.class);
        cameraComp = ViewManager.getViewManager().getCameraComponent();
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.mtgame.CollisionManager

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.