|Raydium 3D Game Engine
|A Pick Function
|Page 1 of 1|
|Author:||Andrew [ Wed Sep 21, 2005 10:52 pm ]|
|Post subject:||A Pick Function|
My apologies for writing this in English...
Does Raydium's API include a "pick" function. That is, a function that processes a mouse click event and returns either the identity of an object the mouse is clicking on and/or the 3D point at which a line drawn from the camera to the mouse would intersect a landscape mesh?
I couldn't see such a function in the API and was wondering if it were present.
Thanks in advance,
|Author:||Xfennec [ Thu Sep 22, 2005 7:06 am ]|
There's no problem with english questions
You're right, there's no picking feature in Raydium. ODE (physics) may allow this easily using rays. I'm adding this to my todo list.
Is something like that is ok ? :
int raydium_ode_pick_mouse(int *element, dReal *localx, dReal *localy, dReal *localz);
returning "touched" element's id and local (x,y,z) point.
|Author:||Andrew [ Thu Sep 22, 2005 10:45 pm ]|
That'd be superb, thanks! I'm looking forward to using it
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group