Search in sources :

Example 1 with CollisionGroupManager

use of org.terasology.engine.physics.CollisionGroupManager in project Terasology by MovingBlocks.

the class HeadlessEnvironment method setupCollisionManager.

@Override
protected void setupCollisionManager() {
    CollisionGroupManager collisionGroupManager = new CollisionGroupManager();
    context.put(CollisionGroupManager.class, collisionGroupManager);
    context.get(TypeHandlerLibrary.class).addTypeHandler(CollisionGroup.class, new CollisionGroupTypeHandler(collisionGroupManager));
}
Also used : CollisionGroupTypeHandler(org.terasology.engine.persistence.typeHandling.extensionTypes.CollisionGroupTypeHandler) TypeHandlerLibrary(org.terasology.persistence.typeHandling.TypeHandlerLibrary) CollisionGroupManager(org.terasology.engine.physics.CollisionGroupManager)

Aggregations

CollisionGroupTypeHandler (org.terasology.engine.persistence.typeHandling.extensionTypes.CollisionGroupTypeHandler)1 CollisionGroupManager (org.terasology.engine.physics.CollisionGroupManager)1 TypeHandlerLibrary (org.terasology.persistence.typeHandling.TypeHandlerLibrary)1