[ODE] Trimesh / Box - Zero Length Normal fix
David Walters
hidden.asbestos at googlemail.com
Mon Oct 30 05:44:03 MST 2006
> I've submitted the box/mesh zero length normal patch to SVN
Okay, just a quick follow up because the file I checked in makes for a
severly obfuscated patch due to the automatic removal of whitespace at
the end of lines by Textpad.
Sorry about that... the change made is as follows:
collision_trimesh_box.cpp, Line #279:
+
+ // ===== Begin Patch by Francisco Leon, 2006/10/28 =====
+
+ // Fixed Null Normal. This prevents boxes passing
+ // through trimeshes at certain contact angles
+
+ fMin = vNormal[0] * vNormal[0] +
+ vNormal[1] * vNormal[1] +
+ vNormal[2] * vNormal[2];
+
+ if ( fMin <= dEpsilon ) /// THIS NORMAL WOULD BE DANGEROUS
+ return true;
+
+ // ===== Ending Patch by Francisco Leon =====
+
+
Regards,
David
More information about the ODE
mailing list