giving gravity and weight to object

Apprentice
Posts: 13
Joined: 2009.08
Post: #1
Hello,
> 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.
>
> http://parrish.homeip.net/public/example.png
Quote this message in a reply
Member
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
Member
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 2,603 Aug 22, 2009 02:43 AM
Last Post: maximile
  gravity control renman3000 4 3,160 Jun 9, 2009 09:41 PM
Last Post: renman3000
  Adding static gravity object game_ding 4 4,884 Mar 28, 2008 05:25 PM
Last Post: Skorche