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.
soccer game movement help
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]
[Edited by - anti_hero on December 10, 2006 12:41:28 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement