/*
 * Copyright 2017 MovingBlocks
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.terasology.physics.engine;

import com.bulletphysics.BulletGlobals;
import org.terasology.context.Context;
import org.terasology.physics.bullet.BulletPhysics;
import org.terasology.physics.bullet.shapes.BulletCollisionShapeFactory;
import org.terasology.physics.shapes.CollisionShapeFactory;
import org.terasology.world.WorldProvider;

public final class PhysicsEngineManager {
    public static final CollisionShapeFactory COLLISION_SHAPE_FACTORY = new BulletCollisionShapeFactory();
    public static final float EPSILON = BulletGlobals.SIMD_EPSILON;

    public static PhysicsEngine getNewPhysicsEngine(Context context) {
        return new BulletPhysics(context.get(WorldProvider.class));
    }
}

@@ -889,102 +889,424 @@
 hape
-Factory;%0Aimport org.terasology.world.WorldProvider;%0A%0Apublic final class PhysicsEngineManager %7B
+;%0Aimport org.terasology.physics.shapes.CollisionShapeFactory;%0Aimport org.terasology.world.WorldProvider;%0A%0A/**%0A * Centralizes the various components of the physics engine. To change the physics engine used, this class%0A * should ideally be the only one modified.%0A */%0Apublic final class PhysicsEngineManager %7B%0A    /**%0A     * The %7B@link CollisionShapeFactory%7D that can be used to create a %7B@link CollisionShape%7D.%0A     */
 %0A   
@@ -1478,16 +1478,121 @@
 SILON;%0A%0A
+    /**%0A     * Create a new %7B@link PhysicsEngine%7D instance.%0A     * @param context%0A     * @return%0A     */%0A
     publ

Document PhysicsEngineManager