Stairs

Blitz3D Forums/Blitz3D Programming/Stairs

Oiduts Studios(Posted 2009) [#1]
So i have searched the forums for stair climbing techniques and have tried them all, but my stairs seem to be too steep. Can someone please help me out on this?


Matty(Posted 2009) [#2]
A common method for climbing stairs, but not the only one, is to use an invisible ramp for collision detection.

Also - check your collision radius, in particular the x-scale of your spherical collision radius, try making it more of an ellipse aligned vertically.


Oiduts Studios(Posted 2009) [#3]
well, the collision ramp works with some stairs, but inside houses i have steep stairs and the player cannot walk up them.


grindalf(Posted 2009) [#4]
how about if you decrease your gravity when the player comes in contact with the stairs?


RifRaf(Posted 2009) [#5]
you can do a linepick slightly in front of the players collision radius , if the pickedy() is higher than collisionY() and the difference is not above the max allowed step height.. move the player up and forward a small amount to get him "on the next step"