Bounce Physics of Ball in Unity Game - Alex

Click For Summary

Discussion Overview

The discussion revolves around the physics of a ball bouncing off walls in a Unity game environment. Participants explore the equations governing the ball's motion, particularly focusing on speed, angles of incidence and reflection, and the effects of gravity on the bounce behavior.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • Alex seeks to understand the equations governing the ball's bounce off walls, specifically wanting to know the speed and angle after impact.
  • Some participants propose that the speed of the ball is conserved during the bounce, suggesting that the angle of incidence equals the angle of reflection in a two-dimensional context.
  • There is a clarification that if the speed is constant, gravity must be ignored, leading to a discussion about the implications of this assumption on the ball's motion.
  • Alex later inquires about the distance the ball will travel after bouncing, indicating a shift in focus from speed to distance.
  • One participant notes that if gravity is ignored, the ball will continue moving in a straight line after the bounce until it encounters another wall.

Areas of Agreement / Disagreement

Participants generally agree on the conservation of speed and the relationship between the angles of incidence and reflection. However, there is some confusion regarding the implications of ignoring gravity and how it affects the ball's behavior post-bounce, indicating that the discussion remains unresolved.

Contextual Notes

The discussion assumes a simplified model of motion that neglects gravitational effects, which may not reflect real-world physics. The implications of this assumption on the ball's trajectory and bounce behavior are not fully explored.

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.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
6K
Replies
5
Views
6K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
2
Views
1K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 15 ·
Replies
15
Views
4K
Replies
46
Views
11K
Replies
3
Views
3K
Replies
6
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K