Example usage for com.badlogic.gdx.physics.bullet DebugDrawer DebugDrawer

List of usage examples for com.badlogic.gdx.physics.bullet DebugDrawer DebugDrawer

Introduction

In this page you can find the example usage for com.badlogic.gdx.physics.bullet DebugDrawer DebugDrawer.

Prototype

DebugDrawer

Source Link

Usage

From source file:com.badlogic.gdx.ai.tests.utils.bullet.BulletWorld.java

License:Apache License

public void setDebugMode(final int mode) {
    if (mode == btIDebugDraw.DebugDrawModes.DBG_NoDebug && debugDrawer == null)
        return;/* w  w w. ja  va2  s  . com*/
    if (debugDrawer == null)
        collisionWorld.setDebugDrawer(debugDrawer = new DebugDrawer());
    debugDrawer.setDebugMode(mode);
}