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 Professional Discussion / need help with sparky

Author
Message
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 25th Sep 2011 18:51
can someone help me with this, i am having problems making my program work with sparky's collision, how can i make function that ray cast from camera to mouse and return object number of collided object like in object collision demo?
Thebeely
21
Years of Service
User Offline
Joined: 4th May 2005
Location: Croatia
Posted: 25th Sep 2011 18:58
Look into the 'Pick Screen' and 'Pick Object' commands, neighbor.
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 25th Sep 2011 19:09
the idea is when you click with the mouse on an object you get its object number and make a little larger wireframe box in the same place, i have tried this with pick screen and pick object but it won't work
Thebeely
21
Years of Service
User Offline
Joined: 4th May 2005
Location: Croatia
Posted: 25th Sep 2011 19:39
This should be something like that using 'pick object'.
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 26th Sep 2011 14:09
thanks it took some time to implement this in my code and it work nicely
Thebeely
21
Years of Service
User Offline
Joined: 4th May 2005
Location: Croatia
Posted: 26th Sep 2011 23:07
Anytime, neighbor

Login to post a reply

Server time is: 2026-07-10 09:57:14
Your offset time is: 2026-07-10 09:57:14