I Trigonometry problem for collision detection and reflection

AI Thread Summary
A particle's trajectory from point 0 to point 2 is being analyzed to determine where it strikes a known circle in a 2D astronomy simulator. The center and radius of the circle are established, but the position of the impact point (point 1) remains unknown. The discussion suggests using the Law of Sines to find angles in the triangle formed by the points, followed by the Law of Cosines to calculate distances. By solving the resulting equations simultaneously, the coordinates of point 1 can be derived. This approach aims to enhance the accuracy of the simulation's collision detection.
darkdave3000
Messages
242
Reaction score
5
A particle moves from point 0 to point 2. Both positions are known. The center of the circle and it's radius is also known. I am trying to work out the position of 1 where the particle strikes the circle.

This is for a 2D astronomy simulator to work out where a particle will strike a 2D representation of Earth. I've exhausted my brain and I am hoping you guys can lend a hand. I've tried using SecTheta but its an imperfect solution, just like Tan Theta.

Purple lines and points are known magnitudes and positions and any other colors are unknowns.

The way the simulator works is it uses the Euler method to increment the position of a moving object, so the particle will move from say point 0 to point 2 between a computer cycle. The time passed typically is 0.1 seconds.

Please help. Kind Regards, David
And may the force be with u.
 

Attachments

  • problem.png
    problem.png
    20.3 KB · Views: 545
  • i126^cimgpsh_orig.png
    i126^cimgpsh_orig.png
    44.6 KB · Views: 572
Last edited:
Mathematics news on Phys.org
darkdave3000 said:
A particle moves from point 0 to point 2. Both positions are known. The center of the circle and it's radius is also known. I am trying to work out the position of 1 where the particle strikes the circle.

This is for a 2D astronomy simulator to work out where a particle will strike a 2D representation of Earth. I've exhausted my brain and I am hoping you guys can lend a hand. I've tried using SecTheta but its an imperfect solution, just like Tan Theta.

Purple lines and points are known magnitudes and positions and any other colors are unknowns.

The way the simulator works is it uses the Euler method to increment the position of a moving object, so the particle will move from say point 0 to point 2 between a computer cycle. The time passed typically is 0.1 seconds.

Please help. Kind Regards, David
And may the force be with u.
How about this?
In the called-out triangle in your drawing, you know the two longer sides and the side opposite the longer one. Use the Law of Sines to get the angle at point 1. Once that angle is known, you can get the third angle (at the bottom end of your drawing), and use the Law of Cosines to get the length of the short side of your triangle.

With all angles and sides of the triangle known, you can write the coordinates of point 1 as (x, y). Point 1 is on a circle of known radius, from which you can derive an equation in x and y. Point 1 is also a known distance from Point 2, which gives you another equation in x and y. Solve these two equations simultaneously to find the coordinates of Point 1.
 
  • Like
Likes mfb
Mark44 said:
How about this?
In the called-out triangle in your drawing, you know the two longer sides and the side opposite the longer one. Use the Law of Sines to get the angle at point 1. Once that angle is known, you can get the third angle (at the bottom end of your drawing), and use the Law of Cosines to get the length of the short side of your triangle.

With all angles and sides of the triangle known, you can write the coordinates of point 1 as (x, y). Point 1 is on a circle of known radius, from which you can derive an equation in x and y. Point 1 is also a known distance from Point 2, which gives you another equation in x and y. Solve these two equations simultaneously to find the coordinates of Point 1.

Sounds solid! Ok I will do it! There is no try with the force :)
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Back
Top