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 / A perfect collision system doesn't seem to want to be...

Author
Message
Qqite
16
Years of Service
User Offline
Joined: 28th Feb 2010
Location: Florida, U.S.
Posted: 9th Jan 2011 11:15 Edited at: 9th Jan 2011 11:16
Right now I'm running off of the standard Sparky's:

But I HATE it! If the floor is not 100% flat the object slides, if I want to have my character climb stairs it's SLOW and under the same variables he will fly off the top of the stairs. Is there a way to find JUST the straight up Y collision?
I want my system to do is this:


Three cookies and a hug to anyone you can at lease point me in the right direction.

Ventures of the worlds around us are only limited by imagination.
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 9th Jan 2011 14:52
Have you tried doing something between syncs such as

(pseudo code here)
Move object down 1 unit
Has object hit something?
Y - move object up 1 unit again
N - do nothing

Malevolence: The Sword of Ahkranox
The infinite RPG
http://swordofahkranox.blogspot.com
Qqite
16
Years of Service
User Offline
Joined: 28th Feb 2010
Location: Florida, U.S.
Posted: 10th Jan 2011 02:33
Yea that's a simple way for collision, I'm trying to solve the "I want sliding but I don't want it to interfere with my x/z coords. I want it to jump up only through Y if possible"

Ventures of the worlds around us are only limited by imagination.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 10th Jan 2011 09:17
Check the Y axis first, then check the X/Z axes. Requires two SCSphereSlide checks per loop.

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-21 20:36:12
Your offset time is: 2026-07-21 20:36:12