[SOLVED] Error "can not find symbol enableDebug" in TestFancyCar

hi.
the TestFancyCar game (and other test games) gives following error when i want enable debug mode with this code.

bulletAppState.getPhysicsSpace().enableDebug(assetManager);

the error:

Compiling 2 source files to /home/asdb20/jme3-projects/fancy-    car/build/classes
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/home/asdb20/jme3-projects/fancy-car/src/mygame/Main.java:94: error:    cannot find symbol
    bulletAppState.getPhysicsSpace().enableDebug(assetManager);
 symbol:   method enableDebug(AssetManager)
 location: class PhysicsSpace
 Note: /home/asdb20/jme3-projects/fancy-car/src/mygame/Main.java uses or    overrides a deprecated API.
 Note: Recompile with -Xlint:deprecation for details.
1 error
1 warning
/home/asdb20/jme3-projects/fancy-car/nbproject/build-impl.xml:920: The    following error occurred while executing this line:
/home/asdb20/jme3-projects/fancy-car/nbproject/build-impl.xml:262: Compile   failed; see the compiler error output for details.
BUILD FAILED (total time: 1 second)

i use jme3alpha1.

thank you for your attention.

The 3.0 javadoc says:
Deprecated. in favor of BulletDebugAppState, use
BulletAppState.setDebugEnabled(boolean) to add automatically

So perhaps it was removed and you have to use the other way. Best to do it anyway.

1 Like

bulletAppState.setDebugEnabled(true);

works fine in 3.1 alpha

2 Likes

thank you both it works well

1 Like