[QUOTE=luisgmolina] Your theory is good but only good for a bullet traveling on a fixed path.
In my case I need to know which way (left or right). a bullet of fire like mario bros type when you get a flower.
when the path changes, the formula is still valid I guess, and the VectorX I wrote is a negative number when going to the left, a positive when going to the right , and 0 if not travelling on the X axis(since the cosinus can be negative or positive or equal to 0 with the angle)
but still, this is a tricky formula, and I'm pretty sure a more understandable method can be foundAphrodite2013-04-28 00:59:31
Game design is all about decomposing the core of your game so it becomes simple instructions.