A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Ball Physics

  1. #1
    Junior Member
    Join Date
    Nov 2002
    Posts
    18

    Ball Physics

    Hi There,
    I am developing a pool game.
    I have acheived quiet a lot in collision detection.

    Now theres one prb I am facing.

    When a cue ball is hit and it in turns hits another target ball on the table the target ball gets deflected by hit angle and it moves at the relevant speed(obtained from the cue ball). This far I have acheived.

    The target ball is geeting deflected by the delta of the _x and _y of the target ball and the cue ball.

    But now I want even the cue ball to get deflected accordingly. I am unable to deflect the cue ball at the required angle and also how much it should get deflected. How do I do it? Is there any algorithm available which I can b used here?

    I shall I put in the code if required be.

    thx in advance.
    Where is this Flash Rocket Taking us ^|^

  2. #2
    Member
    Join Date
    Mar 2000
    Location
    Atlanta
    Posts
    83

  3. #3
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    Well, check the physics forum, as they have numerous (and very fruitful) threads on this topic... all the info yuo need is there, go look.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center