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 / Walking Up Steps

Author
Message
lesPaul456
15
Years of Service
User Offline
Joined: 8th Apr 2009
Location:
Posted: 10th Apr 2009 18:21
Hello,

I'm new to the Dark GDK, and I'm having a problem with a level that I created in FPS Creator.

Right now, I just have a simple room, and a camera that I'm controlling using the arrow keys. I have the camera set to automatic collision and I'm checking collision with the level using "SetOjectCollisionToPolygons". This works great...until I reach the stairs. I looked up how to do this on the forums, and I saw someone suggest to use a ramp to check collision. I also saw a suggestion to use a matrix, slant it to the angle of the stairs and check it that way.

So, here's my question: How do you set up a ramp to check for collision?

To me, it seems that using a matrix would be easier. I can't figure out how to rotate a matrix, or how to check for collision with a matrix. Does anyone know how to do this?

Also, if I use a ramp or matrix like this, will I just be able to use sliding collision to move up the stairs?

Thanks! Any help will be very much appreciated.
lesPaul456
15
Years of Service
User Offline
Joined: 8th Apr 2009
Location:
Posted: 11th Apr 2009 00:59
Okay...I figured it out. Just in case anyone is interested, I solved this by using Sparky's Collision library. I didn't need a ramp, or a matrix. Just followed the sliding sample provided with the library.

Login to post a reply

Server time is: 2024-11-25 15:00:07
Your offset time is: 2024-11-25 15:00:07