Original Post
well, I am working on my game right now, and I am a little confused and uncertain, how to make my engine, simple and more logical. The game is 2d top down. So all i need is simple 2d vectors to assign direction to move. I have 2 typed of vectors - dynamical ( that change it values by resisatances ( such as friction)) and static (it is used while user keeps button pressed).Also I have a rotation vector (statical and dynamical also) Well it was pretty simple at beginning, but now when I rotate the object, it becomes pretty impossible to keep up with static vectors. For example I pressed a button (to move player forward) It adds static vector, and the player moves. Now when I rotate player with other key, also player direction should be changed to the new one, that's fine I change it, but when the forward button unpressed some vector direction is still present. Well what suggestions do you have ? Maybe you can suggest a better system ? Tnx in advance