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 / Proper polygon collision with sparkys ('sphere'casting)

Author
Message
Aralox
19
Years of Service
User Offline
Joined: 16th Jan 2007
Location: Melbourne
Posted: 1st Jul 2010 07:01
hey guys, im doing a bit of programming again after about a year, and am making a little game. The collision is driving me nuts, which is ironic because i wrote a tutorial for basic collision a while back. Its mainly because ive forgotten much, and never really did grasp vectors when i wrote that tutorial.

Anyways, in my attempt to properly understand and apply collision, i came up with this little bit of code:


It looks fine to me, but i end up sliding all the time - but the real problem is, my box man model is not really colliding with the map- I think its the little sphere used for sphere casting. Speaking of which, when i set the radius of that sphere to more than .2, my guy just keeps flying up into the air. I have no idea.

The zip file of the whole project so far is attached

Thanks for the help
Aralox

Login to post a reply

Server time is: 2026-07-25 08:29:31
Your offset time is: 2026-07-25 08:29:31