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.

Dark GDK / Starting On Collision, Would Like Your Thoughts

Author
Message
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 2nd Nov 2009 08:39 Edited at: 2nd Nov 2009 08:45
Hey all, I've just started doing collision for my game and I would like your thoughts on how you guys do it. I'll post my commented code below but the general idea is to see if the new movement would cause any collisions and if so, sent it back so that it doesn't make any collisions.

How do you guys do it?

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 2nd Nov 2009 19:50
Look into Sparky's Collision DLL. It's extremely helpful.

"everyone forgets a semi-colon sometimes." - Phaelax
BearCDP
15
Years of Service
User Offline
Joined: 7th Sep 2009
Location: NYC
Posted: 2nd Nov 2009 21:30
I'm using DarkPhysics for collision, and then the projectile motion formula for jumping. This is combined with a raycast and change in height check relative to the player's last position. I don't know how terrains will work out yet, I'm assuming DarkPhysics handles it. If not, then it'll be fundamentally similar to your code.

Login to post a reply

Server time is: 2024-10-01 16:29:19
Your offset time is: 2024-10-01 16:29:19