> Flash Projects > Proof of Concepts
S. E.    WebDev    Flash     Writings    Software     Music      Art     Home    Contact
 

Flash Links
explore
engineering.org

EED Flash Website
SSC Flash Website

Toys and Games

Bow Master 2.2b
Sai Throwing 1.1
Voodoo Doll Solar System
Yoda on Drums

Cool Stuff

Gravity 5 - Screen Saver
Tech Center 2025

Thoughtful

Mothers Day Card
To Celia

Proof of Concepts

Bounce Test
Orbits

Proof of Concepts

06/05/2003
Bounce Test

This doesn't look like much but there is a lot behind it.  This demonstrates a calculated reflected trajectory of a point in motion off of a round surface.  I can't recall exactly the equations I used, but I remember that I used the dot-product and had four separate cases (one for each quadrant).  Perhaps my calculations can be simplified, but the important thing is that I was actually able to demonstrate a calculated trajectory off a circular surface (rather than a "virtual" hard coded reflection used in Pong and Breakout).

To test the reflection, click and hold anywhere on the screen.  Then, while holding, drag in the direction away from the red dot.  Release to have the yellow/green ball move in the direction of the red dot.  Test the the reflected angles in all quadrants.  Try acute angles, obtuse angles, angles that start right and go left and vice versa.  The reflections (or perhaps deflections) occur as if the ball is hitting a flat surface that is tangent to the big yellow circle's circumference at the point of contact.


Orbits

Though these orbits may look cool, they represent failed attempt at the true elliptical orbits that planets experience (according to Keplar's Laws of Planetary Motion).  See my Voodoo Doll Solar System for a demonstration of correctly calculated elliptical orbits in my Toys and Games section. However, what I accidentally discovered were a 2-dimensional simple harmonic oscillators!  Actual scientific applications of such things include springs and pendulums.  Perhaps in the future I may create a flash grandfather clock, or a virtual spring system.  Oh the possibilities!



Last updated 05/01/2003, Jason Reinsvold. For any comments, questions, or concerns regarding this site please email me at jreinsvo@calpoly.edu