| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jan 2002
Posts: 8
|
Hello everyone,
I saw a dazzling game of billiards on flashacademy.com(experiment section). I have been able to make most of it except the collision(of balls) and rebounding in such a way that it looks o real. They haven't made the source code available. plz help me do this advanced collision. thanx in advance. |
|
|
|
|
|
#2 |
|
The Placid Casual
Join Date: Oct 2001
Location: Malta
Posts: 1,026
|
The concept is basically this. When the balls hit (using hitTest), you need to calculate a couple of thigs. I suppose you would know how to bounce the ball at different angles off a straight line. Basically when you do that you get the angle at which the ball hits the straight line and calculate the same angle on the other side of a right angle to the streight line. Now basically the right angle from the straight line in this case would be the line between the center of the ball you are bouncing against and the center of the ball in question. Then do the same as you would on a straght line.
Did you understand the concept. SFA |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Card Match Game, Colour Me In Pictures and Board Game | Total Frigging | ActionScript 2.0 | 4 | 02-21-2005 01:04 AM |
| word search game with AS2 | black | General Chat | 5 | 08-12-2004 10:44 AM |
| [AS2] Tile game or not tile game? | krolben | Gaming and Game Development | 4 | 07-28-2004 01:41 PM |
| Game - freelancer required | fatherb | Projects and Positions | 6 | 07-18-2003 12:47 PM |