From: Christopher K. S. J. <cs...@qu...> - 2001-02-06 06:57:09
|
Patrick AS Sinclair wrote: > > I'm using the libVRML97 in my work but I need very simple object to > object collision detection. Basically, I want to check whether a point > is inside certain objects in the scene, such as Anchor nodes. Is there > an easy way to do this or do I have to calculate the bounding boxes > etc. and check whether the point is inside them myself? > Check out VrmlNode::getBVolume(), and the comments in VrmlBVolume.h (and friends). I'm switching jobs right now, so I'm a little overloaded, but if you've got specific questions, I can probably answer. Note that if you want exact results, instead of just bvolumes, then you're on your own, and possibly in for a lot of work. ray-based picking and avatar/object collision are on the requirements list, but aren't implemented yet. Can you elaborate on your problem/requirements? (If I had to guess, sounds like a 3d pointing device?) -cks |