Original Post
are there some way to do big and complex function? I have done a function D3DXVECTOR3 collideresponse(Movable movable) it judge if movable collid with other (wall etc...) if collided, stop,if move again stop. if move back ,go on. I found this complex function is hard to handle. there are several flow and easy to create bug. much variable in it are relative,it is not easy to divide to several function. So some available experience to do?