[ODE] dCylinder bugs?
Michael Bailey
mike-ba at cox.net
Mon Feb 17 13:22:02 2003
This is a multi-part message in MIME format.
------=_NextPart_000_05F0_01C2D67F.366981B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hi All,
I've noticed two things in the current version of dCylinder and I wanted to
check to see if anyone else had seen the same.
1. MSVC reports a var used before initialized. This message is only
reported in release builds so you may need to do a release build to see the
warning. Here's the exact warning:
"dCylinder.cpp(1024) : warning C4700: local variable 'normal' used without
having been initialized"
The line of code is:
sign = (dDOT14(normal,R+1) > 0) ? REAL(1.0) : REAL(-1.0);
This appears to be a valid warning to me, and may cause bad stuff to happen.
2. The Cylinder/Box and Cylinder/Cylinder collisions seem to have issues
when the cylinder end is parallel to a box's side or another cylinder's end.
In these cases the cylinder seems to work through one another after a nice
Jello dance. When the collision occurs on the round part of the cylinder,
things seem to behave much better.
Any comments?
Thanks,
Mike
BTW This is a great list!
------=_NextPart_000_05F0_01C2D67F.366981B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial size=3D2>Hi=20
All,</FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial size=3D2>I've =
noticed two=20
things in the current version of dCylinder and I wanted to check to see =
if=20
anyone else had seen the same.</FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial size=3D2>1. =
MSVC reports a=20
var used before initialized. This message is only reported =
in release=20
builds so you may need to do a release build to see the warning. =20
Here's the exact warning:</FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003></SPAN><SPAN =
class=3D484244219-17022003><FONT=20
face=3DArial size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial =
size=3D2>"dCylinder.cpp(1024)=20
: warning C4700: local variable 'normal' used without having been=20
initialized"</FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial size=3D2>The =
line of code=20
is:</FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial =
size=3D2> =20
sign =3D (dDOT14(normal,R+1) > 0) ? REAL(1.0) : =
REAL(-1.0);</FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial size=3D2>This =
appears to be a=20
valid warning to me, and may cause bad stuff to =
happen.</FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial size=3D2>2. The =
Cylinder/Box=20
and Cylinder/Cylinder collisions seem to have issues when the cylinder =
end is=20
parallel to a box's side or another cylinder's end. In these cases =
the=20
cylinder seems to work through one another after a nice Jello =
dance. =20
When the collision occurs on the round part of the cylinder, things seem =
to=20
behave much better. </FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial size=3D2>Any=20
comments?</FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2>Mike</FONT></SPAN></DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D484244219-17022003><FONT face=3DArial size=3D2>BTW =
This is a great=20
list!</DIV>
<DIV><BR></DIV></FONT></SPAN></BODY></HTML>
------=_NextPart_000_05F0_01C2D67F.366981B0--