# Basic Physics Question

**URL:** https://forum.kirupa.com/t/basic-physics-question/237027
**Category:** programming
**Created:** [August 26, 2007, 5:33pm UTC](https://forum.kirupa.com/t/basic-physics-question/237027 "2007-08-26T17:33:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Blommestein](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@Blommestein](https://forum.kirupa.com/u/Blommestein)
#### Post date: [August 26, 2007, 5:33pm UTC](https://forum.kirupa.com/t/basic-physics-question/237027/1 "2007-08-26T17:33:31Z")

</div>

I’m trying to simulate a projectile launch like this ( [http://galileo.phys.virginia.edu/classes/109N/more\_stuff/Applets/ProjectileMotion/jarapplet.html](http://galileo.phys.virginia.edu/classes/109N/more_stuff/Applets/ProjectileMotion/jarapplet.html) ). I googled but the results aren’t specific.

What would you set the x and y of an object when time ( t ) is updated, assuming you have these vars:[LIST]  
[_]angle ( a )  
[_]velocity ( v )  
[_]x0 ( initial x )  
[_]y0 (initial y)  
[\*]Not sure if necessary, but if so gravity (g)[/LIST]\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

Also, given a projectile at its initial position’(x0, y0) and angle ‘a’, how can I solve for the velocity (v) to make it pass through a point (x, y)?

Thanks. 🙂
