Search in sources :

Example 1 with DebugTools

use of com.jme3.bullet.debug.DebugTools in project jmonkeyengine by jMonkeyEngine.

the class WorldOfInception method simpleInitApp.

@Override
public void simpleInitApp() {
    //set far frustum only so we see the outer world longer
    cam.setFrustumFar(10000);
    cam.setLocation(Vector3f.ZERO);
    debugTools = new DebugTools(assetManager);
    rootNode.attachChild(debugTools.debugNode);
    poiMaterial = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
    poiMaterial.setTexture("ColorMap", assetManager.loadTexture("Interface/Logo/Monkey.jpg"));
    poiMesh = new Sphere(16, 16, 1f);
    ballMaterial = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
    ballMaterial.setTexture("ColorMap", assetManager.loadTexture("Interface/Logo/Monkey.jpg"));
    ballMaterial.setColor("Color", ColorRGBA.Red);
    ballMesh = new Sphere(16, 16, 1.0f);
    poiHorizonCollisionShape = new MeshCollisionShape(new Sphere(128, 128, poiRadius));
    poiCollisionShape = new SphereCollisionShape(1f);
    ballCollisionShape = new SphereCollisionShape(1f);
    setupKeys();
    setupDisplay();
    setupFog();
}
Also used : Sphere(com.jme3.scene.shape.Sphere) MeshCollisionShape(com.jme3.bullet.collision.shapes.MeshCollisionShape) SphereCollisionShape(com.jme3.bullet.collision.shapes.SphereCollisionShape) Material(com.jme3.material.Material) DebugTools(com.jme3.bullet.debug.DebugTools)

Aggregations

MeshCollisionShape (com.jme3.bullet.collision.shapes.MeshCollisionShape)1 SphereCollisionShape (com.jme3.bullet.collision.shapes.SphereCollisionShape)1 DebugTools (com.jme3.bullet.debug.DebugTools)1 Material (com.jme3.material.Material)1 Sphere (com.jme3.scene.shape.Sphere)1