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 / Collision detection help

Author
Message
thecartm
14
Years of Service
User Offline
Joined: 30th Mar 2012
Location: In your closet, hiding....
Posted: 28th Apr 2012 03:23
Okay, so now I have a problem with detection. Here are the lines I suspect a problem:
dead = OBJECT HIT(10,0)
And:

I would give more but I am not comefortable with giving more.
OBJECT HIT (10,0) is always 20 or more. Would anyone plz help?

Hah, my signature is meaningless.
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 28th Apr 2012 14:11
What is the problem? What are you expecting to happen with the above code? Why do you think Object Hit should return something below 20? Why are you using sphere collision, since polygon or box collision is not default?

Do not be afraid to post some more code, I am sure you will help yourself more rather than keeping your problem a secret.

Login to post a reply

Server time is: 2026-07-08 05:37:41
Your offset time is: 2026-07-08 05:37:41