A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 29 of 29

Thread: Ball inside Ball collision - stop bouncing

  1. #21
    Funkalicious TOdorus's Avatar
    Join Date
    Nov 2006
    Location
    Nijmegen, Netherlands
    Posts
    697

  2. #22
    bibuti. nolen's Avatar
    Join Date
    Sep 2002
    Location
    az.
    Posts
    191
    I'm not sure I follow...
    i'm obsessed with video games.

  3. #23
    Funkalicious TOdorus's Avatar
    Join Date
    Nov 2006
    Location
    Nijmegen, Netherlands
    Posts
    697
    It's friction which causes bigger objects to fall slower then smaller objects, but faking it like mass*gravity does do the trick nicely. Just pointing out it isn't true to physics.

  4. #24
    bibuti. nolen's Avatar
    Join Date
    Sep 2002
    Location
    az.
    Posts
    191
    Quote Originally Posted by TOdorus View Post
    It's friction which causes bigger objects to fall slower then smaller objects, but faking it like mass*gravity does do the trick nicely. Just pointing out it isn't true to physics.
    Ah, right on.

    Still having troubles with this if anyone has any insight.

    Thanks for the help so far, everyone.
    i'm obsessed with video games.

  5. #25
    bibuti. nolen's Avatar
    Join Date
    Sep 2002
    Location
    az.
    Posts
    191
    Any other ball physics gurus out there?
    i'm obsessed with video games.

  6. #26
    Funkalicious TOdorus's Avatar
    Join Date
    Nov 2006
    Location
    Nijmegen, Netherlands
    Posts
    697
    I see that there's a function to calculate the length of the vector, but when do you actually update the length of the distance vector? As far as I can tell you only update the x and y components but not the length.

  7. #27
    Senior Member Pazil's Avatar
    Join Date
    Sep 2006
    Location
    Ontario, Canada
    Posts
    913
    The length is a getter property, and the length is calculated only when you get it.
    WIP-ZOMBIES

    I love vegetarians! More meat for the rest of us!

  8. #28
    bibuti. nolen's Avatar
    Join Date
    Sep 2002
    Location
    az.
    Posts
    191
    Quote Originally Posted by Pazil View Post
    The length is a getter property, and the length is calculated only when you get it.
    Yeah this is correct. The length is being calculated and updated properly, from what I can see. Otherwise my projections wouldn't be working, I think.

    Something with my reaction code is wrong.
    i'm obsessed with video games.

  9. #29
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793
    Maybe the solution eludes you because the red ball should be ROTATING along the edge of the bigger one when it makes contact with 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