Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / PickScreen

Author
Message
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 7th Feb 2009 22:37 Edited at: 7th Feb 2009 22:39
Hi,
I am trying to write a similar function to pick object, but that returns if the mouse is over the specified object instead of all objects.



So in theory this just return more than 0 if the mouse is over the speicifed object.

But it only returns 0.

Any idea why?

Thanks,
Alex

AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 7th Feb 2009 22:41
Oh dear I did the raycast on the wrong coordinates

AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 7th Feb 2009 23:58
Just so you know, you can set the parameters of dbPickObject( ) so that it only checks if the mouse is over one object, and it's probably faster because it's being done internally by DGDK.

You just set ObjectStart and ObjectEnd to the object ID of the object you're checking.

AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 8th Feb 2009 00:27
Oh I thought that was the maximum and minimum distance

Login to post a reply

Server time is: 2024-09-30 17:20:36
Your offset time is: 2024-09-30 17:20:36