[ODE] tri-list and new collision

Shaul Kedem shaul_kedem at yahoo.com
Sun May 25 03:58:02 2003


Cool,
 But I am still trying to get everything to work
together under msvc 6... I accomplished compiling ,
writing code for, and adding the stepfast using msvc 6
but I still can't do anything with opcode 1.2 (and
latest ODE from the cvs)

 Please help,

Thanks,
Shaul Kedem.

--- Nate W <coding@natew.com> wrote:
> 
> I've been looking into the problem with boxes and
> trilists with the new
> collision code, and I think I found the problem.  
> 
> dcTriListCollider::CollideBox passes a tri-list
> dGeom-derived object as
> the "o2" parameter of a call to dCollideBoxPlane
> (formerly dCollideBP).  
> dCollideBoxPlane is expecting a dxPlane object, from
> which it gets the
> plane's normal vector as follows:
> 
> 	dxPlane *plane = (dxPlane*) o2;
> 	const dReal *n = plane->p;
> 
> It appears that dxTriList is no longer laid out in
> memory just like
> dxPlane, so the attempt to get the normal vector
> just returns garbage.  
> If anyone has thoughts on the right way to fix this
> problem, I'm all ears.  
> I'll take a stab at it tomorrow in any case.
> 
> -- 
> 
> Nate Waddoups
> Redmond WA USA
> http://www.natew.com
> 
> 
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com