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 / Lock object collisons??? would be great?

Author
Message
ICERGB
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 17th Dec 2002 18:35
Is there anyway to detect a locked object collision with another unlocked object on the screen?

I thought this might be a good way to start a 3d mouse detection program?

Does anyone have any 3dimensional mouse collision progam snippets?
UberTuba
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 17th Dec 2002 21:38
This is nearly imposssible, and really the only way to do this is either to get a command to do it, Or take a pictre of the object against an empty background and with the camera and object in the same ralative positions and use a small program to chech whether each pixel int the picture is the background colour or not, and if the pixel the mouse is over is not the background color a collision has occured. Or use the command object screen [x/y](object number) and then drawing a box around this point to check for mouse collision

Life is a terminal disease.
You never survive it.
ICERGB
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 17th Dec 2002 21:41
found another way using "set object to camera orientation"

Login to post a reply

Server time is: 2024-05-02 08:12:00
Your offset time is: 2024-05-02 08:12:00