Code for shooting an object at an angle

Started by deltamatrix, Thu 24/12/2009 13:40:06

Previous topic - Next topic

deltamatrix

Hi,

I want to develop some code that enables a robot to shoot at a moving target (i.e: the player character). but rather than spawning a laser object and simply MoveObject, I want the object to continue moving past the target if it misses (i.e: move along an angled trajectory).

My question is, do you know of any existing code or pseudo code available that already does this which I can reuse. I am googling but thought I'd ask here as well.

Thanks

delta
BAD WOLF - TORCHWOOD - MR SAXON - THE BEES ARE DISAPPEARING - PANDORICA - RIVER SONG

Technocrat

Wrong forum. You want "Technical Questions", or "Beginner's Technical Questions".

deltamatrix

BAD WOLF - TORCHWOOD - MR SAXON - THE BEES ARE DISAPPEARING - PANDORICA - RIVER SONG

SMF spam blocked by CleanTalk