[osg-users] bounding box collisions (without osgbullet)
Julien Valentin
julienvalentin51 at gmail.com
Tue Mar 14 03:11:39 PDT 2017
Hi Sebastian
If you have few dynamic objects, an update callback with an inner intersectvisitor can do the trick ...
In other case you may have to reimplement the wheel (like a AABB sweeping broaphase) , so osgBullet seams the best fit
And to finish, if you have massive dynamics:
-bullet3 have a GPU experimental Broadphase
-you could implement your own GPU collision stuff (as most SPH implementation does)
PS: if osgBullet annoys you because of its dependencies with osgWorks, i have removed all of them on my git:
https://github.com/mp3butcher/osgbullet
Trajce Nikolov NICK wrote:
> Hi Sebastian,
>
> it is for simulation, i have a moving entity and a terrain (with buildings etc). Now I am not after triangle level intersection, but after Entity BBox collision with the terrain (enough is true false). I was thinking to do it really very simple by having LOS rays from the entity center to the corners of the BBox. The entity can move in any direction
>
>
> On Mon, Mar 13, 2017 at 9:41 PM, Sebastian Messerschmidt < ()> wrote:
>
> > Hi Nick,
> >
> > basically this is not an easy task. What exactly do you expect as a collision result?
> > I've implemented a triangle-box collision with MTD (minimal transform distance = vector describing how to push the box to get it exactly away from the colliding triangle). OSG has all the math facilities to do this, but I guess you'll save a lot of headache using pyhsics etc. for dynamics. So maybe try to explain the problem you're trying to solve a bit more in detail.
> >
> > Cheers
> > Sebastian
> >
> >
> > > no one on this?
> > >
> > > On Sun, Mar 12, 2017 at 9:53 PM, Trajce Nikolov NICK < ()> wrote:
> > >
> > > > Hi community,
> > > >
> > > > what would be the best way to implement bbox collision with terrain, from what is already in OSG (no bullet etc)?
> > > >
> > > >
> > > > thanks a bunch as always,
> > > > Nick
> > > >
> > > > --
> > > > trajce nikolov nick
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > trajce nikolov nick
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > > _______________________________________________
> > > > osg-users mailing list
> > > > ()
> > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > > >
> > >
> >
> >
> >
> > _______________________________________________
> > osg-users mailing list
> > ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> >
> >
>
>
>
>
> --
> trajce nikolov nick
>
> ------------------
> Post generated by Mail2Forum
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70482#70482
More information about the osg-users
mailing list