Click here to Skip to main content
16,006,509 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateEvent Pin
Mark Salsbery15-Jan-07 15:40
Mark Salsbery15-Jan-07 15:40 
GeneralRe: CreateEvent Pin
Waldermort15-Jan-07 16:04
Waldermort15-Jan-07 16:04 
AnswerRe: CreateEvent Pin
Mark Salsbery15-Jan-07 14:34
Mark Salsbery15-Jan-07 14:34 
AnswerRe: CreateEvent Pin
Waldermort16-Jan-07 1:33
Waldermort16-Jan-07 1:33 
GeneralRe: CreateEvent Pin
Mark Salsbery16-Jan-07 6:58
Mark Salsbery16-Jan-07 6:58 
GeneralRe: CreateEvent Pin
Waldermort16-Jan-07 7:27
Waldermort16-Jan-07 7:27 
GeneralRe: CreateEvent Pin
Mark Salsbery16-Jan-07 7:42
Mark Salsbery16-Jan-07 7:42 
QuestionQuestion re Turret Rotation for video game Pin
XKonSoftware15-Jan-07 12:37
XKonSoftware15-Jan-07 12:37 
I am currently working on a 2D shooter game, and I would like to be able to include enemy turrets that will be able to rotate towards the player to be able to fire at the player. The turrets have an angle variable, which stores which angle they are currently being rotated by (so which direction they're facing), and I want them to be able to track the player and determine which direction to turn to face the player the quickest. Let me attempt to explain this graphically
--------
Player
--------
--------
Turret -----> Current Firing Direction
--------
In this situation, assuming the player is 135 degrees from the turret, and the turret's rotation is 0, how can I make the turret understand that the best way to track the player is by rotating counterclockwise instead of clockwise? I have tried several methods, including attempts at using the dot products of the 2 vectors, etc. If anyone has any suggestions all help will be appreciated! Thanks!
-Steve
AnswerRe: Question re Turret Rotation for video game Pin
Stephen Hewitt15-Jan-07 15:06
Stephen Hewitt15-Jan-07 15:06 
AnswerRe: Question re Turret Rotation for video game Pin
Stephen Hewitt16-Jan-07 12:09
Stephen Hewitt16-Jan-07 12:09 
QuestionRe-installed XP Pro.. No more GDI+ Pin
Dustin Henry15-Jan-07 12:33
Dustin Henry15-Jan-07 12:33 
QuestionIOCP and ERROR_IO_PENDING Pin
Polity4h15-Jan-07 11:15
Polity4h15-Jan-07 11:15 
AnswerRe: IOCP and ERROR_IO_PENDING Pin
Mark Salsbery15-Jan-07 11:55
Mark Salsbery15-Jan-07 11:55 
GeneralRe: IOCP and ERROR_IO_PENDING Pin
Polity4h15-Jan-07 12:08
Polity4h15-Jan-07 12:08 
GeneralRe: IOCP and ERROR_IO_PENDING Pin
Mark Salsbery15-Jan-07 12:26
Mark Salsbery15-Jan-07 12:26 
GeneralRe: IOCP and ERROR_IO_PENDING Pin
Mark Salsbery15-Jan-07 12:28
Mark Salsbery15-Jan-07 12:28 
GeneralRe: IOCP and ERROR_IO_PENDING Pin
Polity4h15-Jan-07 12:34
Polity4h15-Jan-07 12:34 
Questionhow to create dynamically variables at runtime Pin
Arris7415-Jan-07 9:35
Arris7415-Jan-07 9:35 
AnswerRe: how to create dynamically variables at runtime Pin
Mark Salsbery15-Jan-07 10:10
Mark Salsbery15-Jan-07 10:10 
AnswerRe: how to create dynamically variables at runtime Pin
Maximilien15-Jan-07 10:17
Maximilien15-Jan-07 10:17 
AnswerRe: how to create dynamically variables at runtime Pin
Rajesh R Subramanian15-Jan-07 19:00
professionalRajesh R Subramanian15-Jan-07 19:00 
Questionsim card application Pin
Dritt15-Jan-07 8:37
Dritt15-Jan-07 8:37 
QuestionWhat Happened To AllocateTokenInformation()? Pin
Jeffrey Walton15-Jan-07 6:11
Jeffrey Walton15-Jan-07 6:11 
AnswerRe: What Happened To AllocateTokenInformation()? Pin
Mark Salsbery15-Jan-07 7:46
Mark Salsbery15-Jan-07 7:46 
QuestionLocking down an embedded browser [modified] Pin
Joe Woodbury15-Jan-07 6:09
professionalJoe Woodbury15-Jan-07 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.