CreateStairs method looks good) I think problem in value bottomLevel and topLevel. Can you show them ? Are you shure that use correct units ?