in VehicleWheel.getGroundObject() :
Line 290.
in VehicleWheel.getGroundObject() :
Line 290.
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.