Forgotten println

in VehicleWheel.getGroundObject() :

http://code.google.com/searchframe#Z8vJL-JqpQ0/trunk/engine/src/jbullet/com/jme3/bullet/objects/VehicleWheel.java&q=wheel%20package:jmonkeyengine\.googlecode\.com&ct=rc&cd=4&sq=

Line 290.

1 Like

Thanks. Its kind of a reminder that the actual function in bullet is broken… I should replace it with a proper warning before release though.

I see. What is the proper way to check wheels for contact then? (Seems like I saw it somewhere in docs, but can’t find again.)

@bananaft said: I see. What is the proper way to check wheels for contact then? (Seems like I saw it somewhere in docs, but can't find again.)

There really isn’t any. You could do a raycast yourself or just check if the suspension is compressed.

Just found:

[java] PhysicsCollisionObject floor = (PhysicsCollisionObject) this.getWheel(1).getWheelInfo().raycastInfo.groundObject; [/java]

This actually works as, that function (I expected) should.

1 Like