Bounce Physics of Ball in Unity Game - Alex

AI Thread Summary
In the discussion about bounce physics for a ball in a Unity game, the focus is on calculating the ball's behavior when it hits walls. The ball maintains a constant speed of 10 and has a mass of 1 kg, with the angle of incidence equal to the angle of reflection, following the principle that the approach angle equals 180 minus the departure angle. Gravity is being ignored to simplify the calculations, allowing for constant speed during bounces. The ball will continue moving in a straight line after bouncing until it hits another wall. Understanding these principles is crucial for accurately simulating the ball's movement in the game.
Alexander Baine
Messages
4
Reaction score
0
I am making a game where a ball rolls along the ground collecting coins. The ball is inside four walls. I want to know what the equation for the ball hitting the wall and coming back is. I want the speed and to find the angle aswell. The ball stays at a solid speed of 10 and has a mass of 1 kg. If it helps this game is being made on unity.

Thanks - Alex
 
Physics news on Phys.org
Since speed is conserved, you are ignoring gravity too?
Any bounce should maintain that the angle a made with the wall coming in will be the same as the angle leaving the wall.
In 2d, that means if approach angle =a, departure angle = 180-a.
a=0 describes rolling. a=90 is a straight on bounce and return, ie normal incidence.
 
RUber said:
Since speed is conserved, you are ignoring gravity too?
Any bounce should maintain that the angle a made with the wall coming in will be the same as the angle leaving the wall.
In 2d, that means if approach angle =a, departure angle = 180-a.
a=0 describes rolling. a=90 is a straight on bounce and return, ie normal incidence.
Ah I see so how would i get the speed of the ball coming off the wall
 
You said the speed doesn't change.
 
RUber said:
You said the speed doesn't change.
Sorry not speed how far will it bounce
 
Alexander Baine said:
Sorry not speed how far will it bounce
If you are ignoring gravity (as you must be in order to have constant speed), it will continue after the bounce until it hits the next wall.
 
The rope is tied into the person (the load of 200 pounds) and the rope goes up from the person to a fixed pulley and back down to his hands. He hauls the rope to suspend himself in the air. What is the mechanical advantage of the system? The person will indeed only have to lift half of his body weight (roughly 100 pounds) because he now lessened the load by that same amount. This APPEARS to be a 2:1 because he can hold himself with half the force, but my question is: is that mechanical...
Hello everyone, Consider the problem in which a car is told to travel at 30 km/h for L kilometers and then at 60 km/h for another L kilometers. Next, you are asked to determine the average speed. My question is: although we know that the average speed in this case is the harmonic mean of the two speeds, is it also possible to state that the average speed over this 2L-kilometer stretch can be obtained as a weighted average of the two speeds? Best regards, DaTario
Some physics textbook writer told me that Newton's first law applies only on bodies that feel no interactions at all. He said that if a body is on rest or moves in constant velocity, there is no external force acting on it. But I have heard another form of the law that says the net force acting on a body must be zero. This means there is interactions involved after all. So which one is correct?
Back
Top