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 / collision problem

Author
Message
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 27th Mar 2004 12:12
hi all, I dont know what's wrong with this code but the sphere is falling trough the level, why? could someone help me?
thanks in advance

jopie

if I = 1 then I = 1 else I = 0
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 27th Mar 2004 13:13
According to your code, you're defining your sphere as the level, lol. Try reversing your SetCollisionsPRO() statement to read:

SetCollisionsPRO( 1, 2, ELLIP_2_POLY, RESP_SLIDE, DYN_RESP )

And that should do it.

I've also included a cleaner version in the source tab below.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 27th Mar 2004 15:55
thanks nuclear!

if I = 1 then I = 1 else I = 0

Login to post a reply

Server time is: 2025-05-24 16:16:33
Your offset time is: 2025-05-24 16:16:33