[ODE] How to keep capsule stand and how to make it hover over below objects at a certain height?

Jason Perkins starkos at gmail.com
Sun Aug 6 07:32:38 MST 2006


On 8/6/06, Hampus <hampus at sxp.se> wrote:
> > Ok, I googled a bit, and found out that I cannot alter objects from
> > within NearCallback, because space is indeed locked during this time.
> > But I need the capsule to hover over all objects. Where else can I
> > dCollide ray with other geom if not within NearCallback?
> > I need to know ray collision and I need to alter capsule after
> > that, but

You can call dCollide() anytime you want, it doesn't have to be in the
near callback. You can do your ray test outside of the general
collision test.

HTH,

Jason


More information about the ODE mailing list