Am trying out TestFancyCar tutorial. Using jme3 alpha 4. Auto exits whenever i run the program

i copied and pasted the following code:

http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/test/jme3test/bullet/TestFancyCar.java



however line 100:

PhysicsTestHelper.createPhysicsTestWorld(rootNode, assetManager, bulletAppState.getPhysicsSpace());

has an error saying cannot find symbol for the variable PhysicsTestHelper.



so i commented out that line and it can compile.



however, the program exits after i try to run it, with the following error:





SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.NullPointerException

at TestFancyCar.buildPlayer(TestFancyCar.java:129)

at TestFancyCar.simpleInitApp(TestFancyCar.java:69)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:218)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:138)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:206)

at java.lang.Thread.run(Thread.java:619)



not sure if the code has something lacking. kindly advise, thanks!

xD You cant just comment out lines and expect everything to work. Copy the PhysicsTestHelper from the tests folder as well or understand what it does and recreate that functionality.

oh! okay.

also, i notice that whenever we set the material or texture, we have to call out the file name.

for example:

Common/MatDefs/Misc/SimpleTextured.j3md

Interface/Logo/Monkey.jpg

etc



where do i get the relevant files needed?

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_asset