forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

math equations to map out an objects path

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
fattymc03



Joined: 11 Feb 2006
Posts: 18

PostPosted: Fri Feb 17, 2006 1:58 am    Post subject: math equations to map out an objects path Reply with quote

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
Back to top
View user's profile Send private message
KawaGeo



Joined: 27 Aug 2005
Posts: 191
Location: Calif Mountains

PostPosted: Fri Feb 17, 2006 2:46 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group