|
-
Balls sprayed in different direction on mouseover with collision detection
Hey
I am not completely new to flash but i would class myself as a beginner. I am trying to help a mate out but have become a bit stuck.
What I am hoping to do is 4-6 balls in a box, on page load these balls are still, but when the mouse is moved into them they move in various directions, colliding with eachother/or the walls of the room.
I have found a few tutorials on balls moving and colliding, such as this one http://www.itsnags.com/archives/26 and I had a look at this one http://www.gotoandplay.it/_articles/2004/07/3dBalls.php but I have not been able to find a way in which the balls are still at start on the page loading and are pushed aside by the mouse, bouncing off in different directions.
Also what would be really good is, if there is a method that after a few collisions and bounces the balls would lose momentum and come to a standstill again.
Hopefully I have explained this clearly, and I hope someone is able to help or point me in the right direction.
Any help is much appreciated Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|