Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Mar 28, 2024 8:47 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: A Pick Function
PostPosted: Wed Sep 21, 2005 10:52 pm 
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,
Andrew


Top
  
 
 Post subject:
PostPosted: Thu Sep 22, 2005 7:06 am 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Hi !
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 ? :
Code:
int raydium_ode_pick_mouse(int *element, dReal *localx, dReal *localy, dReal *localz);

returning "touched" element's id and local (x,y,z) point.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 22, 2005 10:45 pm 
That'd be superb, thanks! I'm looking forward to using it :)


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group