math equations to map out an objects path

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
fattymc03
Posts: 18
Joined: Sat Feb 11, 2006 12:22 am

math equations to map out an objects path

Post by fattymc03 »

lets say i want to have an object come on screen and follow a certain path. like if i wanted it to follow y=x^2 where x > 0, so the object travels along a curve (right half of parabola). if i actually moved it along those returned x,y values the animation would of course become jumpy since x is increasing exponentially. what should i do to just make it follow the path without actually using the math. sorry if this doesnt make sense. i cant type it the way im thinking about it
KawaGeo
Posts: 191
Joined: Sat Aug 27, 2005 6:52 am
Location: Calif Mountains

Post by KawaGeo »

I think I know what you meant. Use y as a domain instead of x, i.e. x = sqrt(y), y > 0.

Hope it helps.
Geo Massar
Retired Engineer
Post Reply