Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7092939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:22:37+00:00 2026-05-28T08:22:37+00:00

I’ve been struggling with getting to the right vector values based on 2 bouncing

  • 0

I’ve been struggling with getting to the right vector values based on 2 bouncing circles/balls. I know when they bounce; using Pythagoras, but then I’m lost. I know I would probably have to use trigonometry cos/sin/tan2.

The situation, explained in my image
image
(source: microshift.net)

Found a couple of examples online, but even with those, I can’t figure it out!

Made 2 HTML5 experiments over here.

In one of the examples the 2nd/bigger ball is static, in the other example the larger ball can be moved by moving the mouse cursor.

Can you please give an calculation example based on the known variables?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:22:38+00:00Added an answer on May 28, 2026 at 8:22 am

    You basically want to use conservation of momentum (always) and conservation of energy (assuming you want a perfectly elastic collision). A nice little graphic and the equations are shown here. (In the graphic, the objects are the same size, but the size doesn’t matter. All that matters is the mass of the two circles or spheres and the angle of the line or plane between the two surfaces at the moment of collision — which will just be perpendicular to the line that has the centers and contact point.)

    That’s the basics, then you can deal with the different variations in the following ways:

    case both objects are moving at time of impact:
    To deal with the case when both objects are moving, it’s easiest to transform into a reference frame where one is stationary, and then back again. That is, subtract the vector velocity of object #2 from both objects #1 and #2 (giving object #2 zero velocity), do the calculation, and then add this same vector velocity to both objects. You could, of course, write down the full equation for this, but it’s easier to just transform and transform back.

    case for one object held fixed throughout:
    If you want to hold one of the objects fixed, you just use angle of incidence equal angle of reflection, that is, find the tangent plane (3D) or line (2D) at the time of impact (this will just be the line or plane perpendicular to the line between the centers, that will also include the point of contact) and bounce the object off this plane/line. (You can see in the equations that this is basically the case where one object has infinite mass, and sometimes it’s easier to just do it this way, if say, you’ve already written this for both objects being free to move.)

    case for one object moved with mouse cursor:
    If one object is moved with the mouse cursor, I assume you want it to look like it has infinite mass, that is, the cursor completely pins the object exactly at the cursor’s location. In this case, just combine the previous two cases, that is, transform all motions into the reference frame of the cursor’s object (by subtracting its velocity from everything), do the calculation as for the object being held fixed, and then add the same velocity to transform back again. (It would also look good, imho, to have the cursor object movable but held by a damped spring to the cursor’s location, but that’s a separate issue.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Paperclip to handle profile photo uploads in my app. They upload
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.