- NEW!
Help answer this question below.
The ____ of documentation is typically written first?
Input, output, internal program or external program
by jaleesakababygurl on December 6th, 2010
| 1 person likes this
In a visual C++ WinForm application, how do I pass a variable from an event to another event?
by WickeTD on February 24th, 2011
| 1 person likes this
Can Anybody Help Me With My Program In C++?
by princeoftroy on March 27th, 2011
| 1 person likes this
c++ directx picking is not working
by fbixzramiz on November 22nd, 2010
| 1 person likes this
In C++ is it possible to code a hacking program that automatically hacks?
by Jordan_P on February 26th, 2011
| 1 person likes this
You're reading In C++ format, what is a code to make object 'A' avoid object 'B', while moving to face object 'C' eg: On the classic game "Asteroids" I want to get it so that the ai will move away from my bullets, while facing me and shooting me.
Comments
Cheers.
by Alloysius on February 24th, 2008
yes, but what if the player fires where the object is headed. it would never run the check to see if it is going to be hit.
by Arete22 on June 9th, 2008
wrong ... checking for intersecting trajectories MEANS checking to see if it is going to be hit ...
by Takei-Shihan on June 9th, 2008
The AI could choose to move that direction after the shot was fired.
by Arete22 on June 9th, 2008
... not if you have a subroutine that checks for a clear path BEFORE a direction or speed change ...
by Takei-Shihan on June 9th, 2008
There, all bases covered now.
by Arete22 on June 9th, 2008