Tag Info

New answers tagged

0

I don't think you need sin/cos. This is simple vector math. A vector is calculated by subtracting a point from another, as in target minus the source. In your case, the vector from (2,2) to (8,9) would be (8-2,9-2) = (6,7). Now you can always recover the target by adding the vector to the source (6,7)+(2,2)=(8,9). If what you want is to have 3 steps, just ...


2

Although you can use this type of equasions they are quite unhandy. These are derived from intigration where a fragment of time known as delta time or even dt limits to zero. They are most precise but usually unfit for physics engine due to the complexity of finding the time at which the object or projectile will collide. The complexity grows with more ...



Top 50 recent answers are included