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.

Code Snippets / dbpro - function for objects that exist at certain location

Author
Message
4N!ALA70R
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: Perth, Western Oz
Posted: 30th Apr 2005 22:30
i dont know if this has been done before but here it is anyway


i kno this is very limited but it can be useful,
i have only done projects that require little movements and are not first/third person, kinda arcade games, thus making it limited.
it can easily be changed to make more room for detection (i think )
4N!ALA70R
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: Perth, Western Oz
Posted: 30th Apr 2005 23:30
any comments welcome
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 3rd May 2005 07:40
Not entirely sure what you have in mind as the use for this function, but it looks to me like it could be used to check if an object is passing through a boundry, such as the edge of the game level. The only problem with that is, the positions are rarely ever exact - especially with a Float. So, since it's checking the exact coordinates, I'd be willing to bet that more times than not, this function will return a 0 - even if the object is very very very close.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II

Login to post a reply

Server time is: 2025-05-18 11:28:07
Your offset time is: 2025-05-18 11:28:07