does anybody know how to calculate the angle on a slope i need it for my sonic game and my pizza tower fangame

does anybody know how to make sonic physics

im making a sonic fangame and i dont know how to make sonic physics so if anybody knows how please tell me

mk