Sec 4 is a stressful period....... But nevertheless I still have time to experiment with Flash. I just devised a new equation for rectilinear motion of a particle which makes use of Sin( ) and Cos( ).
Let the horizontal displacement be x ; the vertical displacement be y ; let the angle between the horizontal and vertical displacement be z.
Thus in order for the object to move rectilinearlly with a shape of a parabola , the value must change at a constant rate, thus making the dy/dx be changing from y > 0 to y = 0 to y <0 .
(Please take note that Flash MX calculate everything it radian so it is important to convert the degree to radian before applying it into the equation.
Hence,
Let z = 90 degree
z --
_root.particle._x = Math.cos(z*(Math.PI/180))
_root.particle._y = (Math.sin(z*(Math.PI/180))
And you would get the particle will be displaced to another point through rectilinear motion.
Please make any comment to the content as this is what I found out myself... I am not sure about any better Physics equation avaliable on net..
Monday, February 12, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment