On 8/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Again, my English isn't too good.
> Maybe I missed it, but is there a method to check if two objects are
> intersecting? Like for bb's but works on a lower scale? Would make life
> much easier :)
What I meant with this was avoiding the line segment thing completely.
To help debug I'd suggest making the line segment you are using an
actual graphical object in the scene. This would add complexity to
you code - you'd need to create an osg::Geometry (see the osggeometry
example) but it would give you an immediate visual feedback to where
the ojbects and line segments are.
Another thing to note is that objects can be in different coordiante
frames, so you have to account for this.
As an aside, for collision detection consider using osg::Polytope.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/