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.

DarkBASIC Discussion / How to determine what 3d object is under the mouse cursor

Author
Message
sgalland
22
Years of Service
User Offline
Joined: 18th Nov 2002
Location: United States
Posted: 15th Apr 2004 10:22
I am sure this questions pops up once and a while but I couldn't find it in the forum search or codebase but how do you determine what object is under the mouse cursor? I need a way to basically select an object so I can ghost it in my application.

Thanks!
Bishop
22
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 16th Apr 2004 22:55
i would get the object screen with: object screen x(whatever object)

then say "if the object screen is = to the mouse cursor, then object#=whatever object.....

sorry i can't porvide a code, but i am at school....
hope it helped,
Bishop

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 21st Apr 2004 01:43 Edited at: 21st Apr 2004 01:47
You could say...



Well... I hope I helped

[Edit...]
If you want to find which object is under the mouse you could use a For...Next Loop



Thou shalt not thwart the way of the dragon. For thou tasteth like chicken.

Login to post a reply

Server time is: 2025-05-23 19:27:31
Your offset time is: 2025-05-23 19:27:31