Package org.terasology.physics.bullet

Examples of org.terasology.physics.bullet.BulletPhysics$BulletRigidBody


     * Initializes a new (local) world for the single player mode.
     */
    public WorldRendererLwjgl(WorldProvider worldProvider, ChunkProvider chunkProvider, LocalPlayerSystem localPlayerSystem, GLBufferPool bufferPool) {
        this.chunkProvider = chunkProvider;
        this.worldProvider = worldProvider;
        bulletPhysics = new BulletPhysics(worldProvider);
        chunkTessellator = new ChunkTessellator(bufferPool);
        skysphere = new Skysphere();
        chunkMeshUpdateManager = new ChunkMeshUpdateManager(chunkTessellator, worldProvider);

        // TODO: won't need localPlayerSystem here once camera is in the ES proper
View Full Code Here


        return "Turning on gravity";
    }

    @Override
    public boolean step() {
        BulletPhysics physicsEngine = new BulletPhysics(CoreRegistry.get(WorldProvider.class));
        CoreRegistry.put(Physics.class, physicsEngine);
        CoreRegistry.put(PhysicsEngine.class, physicsEngine);
        return true;
    }
View Full Code Here

    private Config config;

    public HeadlessWorldRenderer(WorldProvider worldProvider, ChunkProvider chunkProvider, LocalPlayerSystem localPlayerSystem) {
        this.worldProvider = worldProvider;
        this.chunkProvider = chunkProvider;
        bulletPhysics = new BulletPhysics(worldProvider);

        localPlayerSystem.setPlayerCamera(noCamera);
        config = CoreRegistry.get(Config.class);
    }
View Full Code Here

TOP

Related Classes of org.terasology.physics.bullet.BulletPhysics$BulletRigidBody

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.