joan abadie
2006/7/25, Robert Osfield <
[EMAIL PROTECTED]>:
Hi Joan,
The drive manipulator use a series of line segmenet intersections
using IntersectVisitor. Its crude but works ok.
For a more sophisticated approach I'd use a osg::Polytope for
intersections and create a visitor along the lines of the
IntersectVisitor. There is a custom visitor in
src/osg/SphereSegment.cpp that uses a Polytope perhaps this would of
use.
Using a Polytope is useful as your can transform it into the local
coords of any object to do the intersection test, wheras as sphere can
deformed out of shape by transforms in a scene. Not the cull
traversal uses osg::Polytope itself when doing view frustum and convex
planar occluder testing.
Robert.
On 7/25/06, jOan < [EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to add some nice collision detection response to my osg app.
> One should never approach any polygon point closer than the clip plane
> distance. I'd also like to have a sliding response in case of a collision.
> I don't think I can use the osgUtil::IntersectVisitor to implement these
> features, I think I should use some sphere collison detection feature.
> Is there these kind of feature in osg ? Is there an other way to perform
> this kind of collision detection + response ?
>
> Thanks for your help.
>
> --
> jOan Abadie
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
jOan
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
