Shooting an arrow towards a target in the Z direction

trydis
Posts: 3
Joined: Sun Nov 08, 2009 11:59 pm

Shooting an arrow towards a target in the Z direction

Post by trydis »

I've developed some standard iPhone apps and some Cocos2d apps and i now want to move into the world of physics.

As my 1st task i want to simulate how to fire an arrow towards a stationary target positioned ahead of the player in the Z direction, with the arrow flying in an arc towards the target and the player looking straight at the target.

Can anyone give me some pointers on how to accomplish this please?

- How do i define the target? static btRigidBody?
- How do i define the arrow? btVector3 and btSpereShape?
- How can i define wind affecting the arrow while in the air?

Thanks in advance.