# Thorwing a sphere

1. Apr 12, 2007

### Mgccl

I'm trying to simulate a sphere got thown in the air
I have find the way of knowing x,y positioning of the sphere though this equation:
x(t) = vt cos(theta)
y(t) = vt sin(theta) - (gt^2)/2
Where v is the initial velocity, theta is the angle, t is the time and g is the gravity.

But this does not take into account of the drag, what if there is drag?
suppose I know the force of drag, where should I add in the 2 functions above?

2. Apr 12, 2007

### mathman

Drag acts in the (opposite) direction of the object, and is a function of the speed.

3. Apr 12, 2007

### daniel_i_l

Are you simulating this on a computer? If so then the easier and more flexible approach would be to use integration. You could start with Euler intergration (google it). You basically calculate the forces on the ball each frame, use that to get the velocity and use that to change the position of the ball. YOu can easily add drag by adding a force proportional to the velocity.