giving gravity and weight to object

Posts: 13
Joined: 2009.08
Post: #1
> I know this will be very hard to calaculate the weight and gravity but i was wondering if you could help. I have a cannon facing up and I have bombs that shot out of it going to where ever the user taps on the screen. I want the bombs to look like this when you tap. The "T" is where the user taps.
Quote this message in a reply
Posts: 48
Joined: 2009.05
Post: #2
Search Google for 'Gaffer On Games' => he has a physics / numerical integration series that will give you all the stuff you need.

Good luck.
Quote this message in a reply
Posts: 281
Joined: 2009.04
Post: #3
From a physics point of view, keep in mind horizontal velocity and vertical velocity are seperate. So, for horizontal velocity, just move the x to the tap, and for vertical, move it to (tapY + powerOfCannon) initially then down until tapY == positionY. That will give you the path, the velocity should not be too difficult.

~ Bring a Pen ~
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  giving object speed/direction 9livesoftware 1 3,877 Aug 22, 2009 02:43 AM
Last Post: maximile
  gravity control renman3000 4 4,957 Jun 9, 2009 09:41 PM
Last Post: renman3000
  Adding static gravity object game_ding 4 7,171 Mar 28, 2008 05:25 PM
Last Post: Skorche