Advertisement

soccer game movement help

Started by November 18, 2006 11:01 AM
21 comments, last by anti_hero 17 years, 11 months ago
That was actually supposed to be a vector function:
P = (2*C-4*B+2*A)*t*t+(4*B-C-3*A)*t+A
where P,A,B, and C are vectors ie they all have an x and y component. It breaks down into two equations:

Px = (2*Cx-4*Bx+2*Ax)*t*t+(4*Bx-Cx-3*Ax)*t+Ax
Py = (2*Cy-4*By+2*Ay)*t*t+(4*By-Cy-3*Ay)*t+Ay

which are pretty much exactly the same so I have no idea why it would work in one axis and not another.
I'm struggling to make this work, are there any books I can get my hands on or some online resources which could enlighten me on this subject?

[Edited by - anti_hero on December 10, 2006 12:41:28 PM]
Advertisement
should I be using the same equation: ball[2] = (p2[0]-p1[0]*p2[2])/t or should I be using a different one for this? I have tried to get it to work and tried googling about the 'net for a bit of help but I'm getting nowhere fast...

This topic is closed to new replies.

Advertisement