Angle of incidence and reflection

Click For Summary
SUMMARY

The discussion focuses on calculating the angle of incidence and reflection for a solid body approaching a sphere with radius R using Java. The solution involves breaking down the velocity vector of the solid body into two components: one tangential to the sphere and the other directed towards the center of the sphere. By reversing the direction of the central component and combining the two components, the bounce-off velocity vector is obtained. The angle between the incident and reflected angles is then halved to determine the angle θ.

PREREQUISITES
  • Understanding of basic physics concepts related to angles and vectors
  • Familiarity with Java programming language
  • Knowledge of vector decomposition techniques
  • Basic understanding of collision mechanics in physics
NEXT STEPS
  • Research vector decomposition in physics for better understanding
  • Explore Java libraries for physics simulations, such as JBox2D
  • Learn about collision detection algorithms in game development
  • Study the mathematics of angles and reflections in physics
USEFUL FOR

Java developers, physics students, and anyone interested in simulating collision mechanics and reflections in programming.

Robben
Messages
166
Reaction score
2
I am trying to write a java code where the user inputs the height at which a solid body approaches a sphere of radius R and outputs the angle ##\theta## at which the body bounces off the sphere.

I have all my code written is just that I don't know how to derive the equation that calculates the angle ##\theta##.

https://col127.mail.live.com/att/GetAttachment.aspx?tnail=0&messageId=fbddf598-ac28-11e4-b241-00215ad73f00&Aux=114%7c0%7c8D20E4CE497FAD0%7c%7c0%7c0%7c0%7c0%7c%7c%7c10%7cmahjk17%40hotmail.com&cid=3d6363fe08a85f18&maxwidth=220&maxheight=160&size=Att&blob=MHxTY3JlZW4uanBnfGltYWdlL2pwZWc_3d
 

Attachments

  • upload_2015-2-3_23-33-21.png
    upload_2015-2-3_23-33-21.png
    789 bytes · Views: 653
Last edited:
Science news on Phys.org
Break down the velocity vector of the solid body into two components: one is tangential to the sphere, another one points to the centre of the sphere. Reverse the direction of the central component and add the two component together and you will have the bounce off velocity vector. The angle between incident and reflected angle is what you need. Divide it by two and you will have the answer. Does it help?
 
lowerlowerhk said:
Break down the velocity vector of the solid body into two components: one is tangential to the sphere, another one points to the centre of the sphere. Reverse the direction of the central component and add the two component together and you will have the bounce off velocity vector. The angle between incident and reflected angle is what you need. Divide it by two and you will have the answer. Does it help?

Hm, can you elaborate please?
 
Robben said:
upload_2015-2-3_23-33-21-png.78612.png

Something wrong with your attachment.
 
A.T. said:
Something wrong with your attachment.

I got it to work now.
 

Attachments

  • Blah.jpg
    Blah.jpg
    5 KB · Views: 591
Last edited:
can you post the code?
 

Similar threads

Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
5K