Forums

Full Version: collision box
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
looks like some recent commit (most likely r2709) broke the collision box extending over the wheels. once again the wheels go through objects marked as collide-able.

--alex--
Fixed in r2711.
what happened to the wheels? the only car that still seems to have them is the m7.

--alex--
Hmm, I've got R2717 and data R534 and it looks fine to me. Can you verify you're using the latest rev of the data repo?
I can confirm it. Instead of the wheels we have car and driver meshes with tire texture applied. The meshes are from the cars loaded. The last car doesn't have any meshes for the wheels.

[Image: shot0033a75p.jpg]
yes, i'm using the latest (534 for data and 2718 for the code) and the wheels are not there
[Image: nowheels.jpg]
r2715 broke the wheel rendering for me.

--alex--
if i apply this patch i get the wheels back
Code:
--- src/car.cpp (revision 2718)
+++ src/car.cpp (working copy)
@@ -320,10 +320,10 @@
                orientation = initial_orientation;

                // temporary hack for cardynamics
-               wheelmodelfront.SetVertexArray(wheelmeshgen[0]);
-               wheelmodelrear.SetVertexArray(wheelmeshgen[2]);
-               wheelmodelfront.GenerateMeshMetrics();
-               wheelmodelrear.GenerateMeshMetrics();
+//             wheelmodelfront.SetVertexArray(wheelmeshgen[0]);
+//             wheelmodelrear.SetVertexArray(wheelmeshgen[2]);
+//             wheelmodelfront.GenerateMeshMetrics();
+//             wheelmodelrear.GenerateMeshMetrics();

                dynamics.Init(*world, bodymodel, wheelmodelfront, wheelmodelrear, position, orientation);
                dynamics.SetABS(defaultabs);

--alex--
Fixed in r2720. Thanks alex.