Spherical coordinate system in ActionScript
To understand the spherical coordinate system i created an example showing the change of the values phi and theta.
The coordinates can be retrieved from spherical coordinates (r, θ, φ) where r = radius, θ=theta and φ=phi by this calculation
pX = radius * Math.sin(theta) * Math.cos(phi);
pY = radius * Math.sin(theta) * Math.sin(phi);
pZ = radius * Math.cos(theta);
You can rotate the particles using the arrow keys.
Thanks to bit101 for the great minmalcomps.
![[del.icio.us]](http://www.bigsource.de/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://www.bigsource.de/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://www.bigsource.de/wp-content/plugins/bookmarkify/facebook.png)
![[Google]](http://www.bigsource.de/wp-content/plugins/bookmarkify/google.png)
![[Mixx]](http://www.bigsource.de/wp-content/plugins/bookmarkify/mixx.png)
![[MySpace]](http://www.bigsource.de/wp-content/plugins/bookmarkify/myspace.png)
![[StumbleUpon]](http://www.bigsource.de/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Twitter]](http://www.bigsource.de/wp-content/plugins/bookmarkify/twitter.png)

