I have some code to handle collisions in my game engine, it allows me to walk up stairs but for some reason the gravity code has no effect.
eg. i walk up the stairs but cant walk down them.
any ideas?
C = sc_SphereSlide(Obj,X1#,Y1#,Z1#,X2#,Y2#,Z2#,Radius#,0)
IF C > 0
plr(1).x = sc_getCollisionSlideX()
plr(1).y = sc_getCollisionSlideY()
plr(1).z = sc_getCollisionSlideZ()
POSITION OBJECT Dyn, plr(1).x,plr(1).y,plr(1).z
position camera 0,plr(1).x,plr(1).y+50,plr(1).z
ELSE
`gravity Control (Remove if plr(1).oject is phy object)
dec plr(1).y,5*factor#
ENDIF