Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: giving an object velocity |
From: | Marc Hoffman, Poison Dart Frog Media |
Date: | Thu, 6 Apr 2000 21:08:55 +0100 |
At 11:28 PM 4/5/00 , you wrote:
>My new and improved, super-revised question is: how does one give an object
>decaying velocity (velocity + gravity) in flash? For example, how do I make
>a movie in flash where I throw an object and slows over time to a stop.
>(Not when I sop moving my mouse.)
Not sure how to code it, but an bject thrown through the air does not slow
down horizontally (except minimally, due to air resistance). Gravity
affects only the rate of vertical drop. Falling velocity increases every
second by a rate of 32 feet per second, so an object that begins with no
vertical thrust (just horizontal thrust) is falling at 32 feet/second at
the end of the first second, but is falling at 64 feet/second at the end of
two seconds. So you could either code the motion so that the x change is
linear while the y change is logarithmic, or you could just draw a motion
path that's eliptical and make the object follow it (less true to life but
probably convincing enough).
Marc Hoffman
Poison Dart Frog Media
http://www.dartfrogmedia.com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml
Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: POSTing variables to port 8080.., Glen Rhodes
Replies
FLASH: giving an object velocity, Olga
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]