Flash Video Player

Multiple collision on angled surface

by admin on December 6, 2007 · 0 comments

in Flash CS3, Trigonometry, Tutorials

Hi!

Concerning the trigonometry applied to Actionscript 3.0, last time we have seen how to control collisions and bouncing on angled surfaces.
Since the reported example was on an unique surface, in this tutorial we will see how to use the same trigonometric formulas applied to more angled surfaces.
In substance it doesn’t change very much, the used formulas are always the two seen first:

rotation of the coordinates of the system:

bring back the coordinate to their initial state:

Let us look at a concrete example…

Find freelance programmers at ScriptLance.com - Search worldwide

Read more

Share This Post

Related posts

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

Older post: Tweener ScrollBar

Newer post: HitTestPoint method