Fw: [ODE] Callback function for Colision

Chris Brodie Chris.Brodie at macquarie.com
Sat Jan 18 04:27:01 2003


Another option I use, is a singleton within the Collision testing function. The collision test func can then instance my Dynamics class that holds things like the world \ spaces etc...

-----Original Message-----
From: gl [mailto:gl@ntlworld.com]
Sent: Saturday, 18 January 2003 10:13 PM
To: ode@q12.org
Subject: Re: Fw: [ODE] Callback function for Colision



One option is to store the class instance pointer in your geoms using
dGeomSetData().  Then use a global callback function as suggested, check for
the class the input geoms belong to, and redirect the callback to the class
specific handler.
--
gl

----- Original Message -----
From: "slipch" <slipch@gsc-game.kiev.ua>
To: <ODE@q12.org>
Sent: Saturday, January 18, 2003 11:02 AM
Subject: Re: Fw: [ODE] Callback function for Colision


> Hello Christian,
>
> Saturday, January 18, 2003, 12:24:04 PM, you wrote:
>
> CG> It's a wrapper and now i must include the Callback function for the
> CG> Colision. How can I handle that?
>
> I live NearCallback in global scope.
>
>
>
> --
> Best regards,
>  slipch                            mailto:slipch@gsc-game.kiev.ua
>
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode
>

_______________________________________________
ODE mailing list
ODE@q12.org
http://q12.org/mailman/listinfo/ode


NOTICE
This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.