[osg-news] Collision detection with drawable
Brought to you by:
robertosfield
From: Peter S. <ps...@ac...> - 2003-03-03 10:26:37
|
Hello, I'm trying to do collision detection with a drawable. The drawable's vertices are stored in an aggregated geometry (the vertices are animated = and therefore changed each frame) and the bounding box is calculated correctl= y, but I can't get any collision detection. In the drawable's accept method = I have tried to both just pass the primitive functor to the geometry's acce= pt method, that is _geometry->accept(prim); and to pass the bounding box with consecutive calls to prim.vertex() with the bounding box vertices. This worked a few months ago, but right now it doesn't. Is there anything else I must do to get ray intersect to work? regards Peter Sunna VRlab, Ume=E5 University |