A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Ball Physics

  1. #1
    Junior Member
    Join Date
    Nov 2002

    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.[FONT=arial][COLOR=crimson]
    Where is this Flash Rocket Taking us ^|^

  2. #2
    Senior Member
    Join Date
    Sep 2001
    Its a common problem. See the post below titled "Ball collision reaction " and the links within it.


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