[ODE] dRay class

Erwin de Vries erwin at vo.com
Fri Jul 26 12:41:02 2002


Added it to the raycollider as well.

Erwin

----- Original Message -----
From: "David McClurg" <dmcclurg@pandemicstudios.com.au>
To: "Erwin de Vries" <erwin@vo.com>; <ode@q12.org>
Sent: Friday, July 26, 2002 02:33
Subject: RE: [ODE] dRay class


> That sounds very handy Erwin.  I'd be glad to test it.  Also, I have a
patch for dcTriListCollider.cpp
>
> //#define CONTACT(Contacts, Stride) ((dContactGeom*) (((char*)Ptr) +
(Stride)))
> inline dContactGeom* CONTACT(int Flags, dContactGeom* Contacts, int Index,
int Stride)
> {
>   dIASSERT(Index >= 0 && Index < (Flags & 0x0ffff));
>   return ((dContactGeom*) (((char*)Contacts) + (Index * Stride)));
> }
>
> This would catch the memory overwrite that often occurs with tri-lists
since there are so many contact points.
>
> -----Original Message-----
> From: Erwin de Vries [mailto:erwin@vo.com]
> Sent: Thursday, 25 July 2002 9:05 PM
> To: ode@q12.org
> Subject: [ODE] dRay class
>
>
> Yesterday and today i've written a dRay class. It interacts with dPlane,
> dSphere, dBox and dCCylinder. It does not generate full contact
information.
> It only generates the pos member. I dont think its useful to anyone to go
> through hoops and find a reasonable normal and penetration depth, as i
dont
> think anyone will want to use it for dynamics. Just for CD.
>
> It should compile in single and double precision mode, and should be
> platform independant. I hope.
>
> The next Tri-Collider release using Opcode 1.1 will also implement a ray
> collision function along with some other not too interesting improvements.
>
>