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

Author
Message
Shock
AGK Developer
17
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 27th Oct 2002 22:31
Wow i knew the built-in collision was slow, bit this is taking the p.

Normally i get 35fps when running the game im making, ive just added collision now i get 1fps! Now my game is going to take alot longer unless someone has some maths collision code they'd like to share, or i can find some on the darkbasiccodebase.
www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Shock
AGK Developer
17
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 27th Oct 2002 22:39
found some math collision on the codebase theres quite a couple different examples.

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Shadow Robert
17
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 28th Oct 2002 03:30
i'd use array sliding collision, probably with standard boxes to make it even faster

the DB 1.13 has the code for sliding collision in the examples, and it's pretty easi to setup an array and then an if...endif for it

Anata aru kowagaru no watashi!
Shock
AGK Developer
17
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 28th Oct 2002 21:49
thanx, i'll take a look (give me some bedtime reading material )

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...

Login to post a reply

Server time is: 2020-08-13 18:45:09
Your offset time is: 2020-08-13 18:45:09