Hi Harald and Andreas,

Simple collision detection is easy: You can do that with an intersect-visitor and test if a given beam intersects something. This way you could simulate a sensor that looks at exactly one direction. There are more sophisticated methods, but others will have to comment on that.

There is a good article on GameDev.net that explains how to do collision detection between ellipsoids and polygons. I've used it to implement viewer-world collision detection and it works fine:

http://www.gamedev.net/reference/articles/article1026.asp

The ray-polygon intersection test performed by osgUtil::IntersectVisitor is not enough for this kind of collision detection (unless you can model the collider as a point rather than as an ellipsoid).

When the project I'm working on is finished I'll be able to release my CD code as open source.

Cheers,
Marco

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to