Soccer goal. Need help defining height of ball at a distance.

  • Thread starter lorenzosounds
  • Start date
  • Tags
    Ball Height
In summary, the task is to write a program that determines if a ball kicked at a user-defined initial distance, angle, and speed will go into a goal that is 2.54m high. This can be done by using relevant kinematic equations, such as flightTime and range, and considering the ball's height at any given time using the kinematic equation for displacement. It is also important to consider what happens if the ball hits the ground before reaching the goal. Further information and explanations can be found in a physics textbook.
  • #1
lorenzosounds
4
0

Homework Statement



Write a program to determine whether or not a ball kicked is a goal. Initial distance (from goal), initial angle, and initial speed are user-defined variables. The net is 2.54 m high. Gravity is 9.81m/s^2


Homework Equations



flightTime=(2)initSpeed*sin(initAngle)/gravity

range=flightTime*initSpeed * cos(initAngle)


The Attempt at a Solution



Trying to define whether or not the ball is above the net when the ball is at the initial distance. I've been thinking about it in terms of trig functions, specifically Sin. Also, maybe using the pythagorean theorem (initDistance^2 + height of ball^2 = Length of tangent line between initDistance and ball^2).

I'm also aware of the kinematic equation vi^2 * (sinθi)^2/2g, which gives the max height of a parabolic flight. However, this doesn't let me define the height at any moment.
 
Physics news on Phys.org
  • #2
I found this formula defining height.

y(t) = (Vo sinm)) - (gt²)/2

What does the A-hat represent?
 
  • #3
lorenzosounds said:

Homework Statement



Write a program to determine whether or not a ball kicked is a goal. Initial distance (from goal), initial angle, and initial speed are user-defined variables. The net is 2.54 m high. Gravity is 9.81m/s^2


Homework Equations



flightTime=(2)initSpeed*sin(initAngle)/gravity

range=flightTime*initSpeed * cos(initAngle)


The Attempt at a Solution



Trying to define whether or not the ball is above the net when the ball is at the initial distance. I've been thinking about it in terms of trig functions, specifically Sin. Also, maybe using the pythagorean theorem (initDistance^2 + height of ball^2 = Length of tangent line between initDistance and ball^2).

I'm also aware of the kinematic equation vi^2 * (sinθi)^2/2g, which gives the max height of a parabolic flight. However, this doesn't let me define the height at any moment.
Welcome to Physics Forums.

"Relevant equations" should probably include all kinematic equations, applied to both horizontal and vertical motion.

You can use the kinematic equation that tells you the ball's height at any given time, given the acceleration and initial velocity.

Also, what is supposed to happen to the ball if it hits the ground before reaching the goal? Does it come to a complete stop, bounce off the ground, continue rolling along the ground, or something else?
 
  • #4
lorenzosounds said:
I found this formula defining height.

y(t) = (Vo sinm)) - (gt²)/2

What does the A-hat represent?
That looks similar to the following equation (2nd equation listed under "Displacement"):
http://en.wikipedia.org/wiki/Projectile_motion#Displacement

But there is no A-hat in that equation.

I'll suggest that you look at a physics textbook, in the section that discusses projectile motion, which will have all the equations and also explain what all the terms mean.
 
  • #5


As a scientist, it is important to have a clear understanding of the problem at hand before attempting to solve it. In this case, the problem is asking for a program that can determine whether a ball kicked towards a soccer goal is a goal or not. The program should take into account the initial distance from the goal, initial angle, and initial speed of the ball, as well as the height of the goal and the force of gravity.

To solve this problem, we can use the basic principles of projectile motion. In this case, the ball is being kicked at an angle, so we need to use both the horizontal and vertical components of the initial velocity. We can use the equations provided in the problem to calculate the flight time and range of the ball.

Once we have these values, we can use the vertical component of the initial velocity and the time to calculate the maximum height of the ball. This can be done using the kinematic equation, h = vi^2 * (sinθi)^2/2g. This will give us the maximum height of the ball at any given moment.

To determine if the ball is a goal or not, we need to compare the maximum height of the ball to the height of the goal. If the maximum height is greater than the height of the goal, then the ball is a goal. If it is lower, then it is not a goal.

In summary, to solve this problem, we need to use the equations provided to calculate the flight time and range of the ball, and then use the kinematic equation to calculate the maximum height of the ball at any given moment. We can then compare this height to the height of the goal to determine if the ball is a goal or not.
 

1. How do you define the height of a soccer ball at a distance?

To define the height of a soccer ball at a distance, you need to use the principles of projectile motion. The height of the ball can be calculated using the initial velocity, angle of launch, and time elapsed since the ball was kicked. These variables can be measured using specialized equipment or by using mathematical equations.

2. What factors affect the height of a soccer ball at a distance?

The height of a soccer ball at a distance is affected by the initial velocity, angle of launch, air resistance, and the surface the ball is kicked on. The height also decreases over time due to gravity pulling the ball back towards the ground.

3. Can you determine the height of a soccer ball without using specialized equipment?

Yes, the height of a soccer ball can be calculated using mathematical equations without the use of specialized equipment. However, the accuracy of the calculation may be affected by factors such as air resistance and the surface the ball is kicked on.

4. How does the height of a soccer ball at a distance affect gameplay?

The height of a soccer ball at a distance can affect gameplay in various ways. A higher ball may be more difficult to control and may result in a higher chance of the ball going out of bounds. A lower ball may be easier to control but may also be more predictable for the opposing team's defense.

5. Are there any regulations or standards for the height of a soccer ball at a distance?

There are no specific regulations or standards for the height of a soccer ball at a distance. However, there are regulations for the overall size and weight of a soccer ball, which can indirectly affect the height of the ball at a distance. These regulations are set by organizations such as FIFA and must be followed in official matches.

Similar threads

  • Introductory Physics Homework Help
Replies
7
Views
2K
  • Introductory Physics Homework Help
Replies
9
Views
978
Replies
2
Views
2K
  • Introductory Physics Homework Help
Replies
2
Views
972
  • Introductory Physics Homework Help
Replies
22
Views
4K
  • Introductory Physics Homework Help
Replies
9
Views
2K
  • Introductory Physics Homework Help
Replies
6
Views
1K
  • Introductory Physics Homework Help
Replies
3
Views
2K
  • Introductory Physics Homework Help
Replies
19
Views
2K
Replies
2
Views
1K
Back
Top