Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
QuestionWhere to draw? Pin
MasterSharp11-Oct-07 10:43
MasterSharp11-Oct-07 10:43 
AnswerRe: Where to draw? Pin
Christian Graus11-Oct-07 10:49
protectorChristian Graus11-Oct-07 10:49 
GeneralRe: Where to draw? Pin
MasterSharp11-Oct-07 10:53
MasterSharp11-Oct-07 10:53 
GeneralRe: Where to draw? Pin
Christian Graus11-Oct-07 10:55
protectorChristian Graus11-Oct-07 10:55 
AnswerRe: Where to draw? Pin
Giorgi Dalakishvili11-Oct-07 10:51
mentorGiorgi Dalakishvili11-Oct-07 10:51 
AnswerRe: Where to draw? Pin
Pete O'Hanlon11-Oct-07 11:04
mvePete O'Hanlon11-Oct-07 11:04 
QuestionCollision Pin
MasterSharp11-Oct-07 10:10
MasterSharp11-Oct-07 10:10 
AnswerRe: Collision Pin
Christian Graus11-Oct-07 10:34
protectorChristian Graus11-Oct-07 10:34 
Collision of squares is easy. I believe the Rectangle class has a PtInRect method, just pass that the four corners of your other rectangle and see if any of them return true. A rectangle is easy because if any of the corners are inside the other rectange, then they have collided. Irregular shapes are more complex, I present one solution ( although I don't believe it's overly efficient ) in my series of articles on writing a game in C#.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Collision Pin
MasterSharp11-Oct-07 10:54
MasterSharp11-Oct-07 10:54 
GeneralRe: Collision Pin
Christian Graus11-Oct-07 10:58
protectorChristian Graus11-Oct-07 10:58 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 11:00
MasterSharp11-Oct-07 11:00 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 11:04
MasterSharp11-Oct-07 11:04 
GeneralRe: Collision Pin
Pete O'Hanlon11-Oct-07 11:05
mvePete O'Hanlon11-Oct-07 11:05 
GeneralRe: Collision Pin
Christian Graus11-Oct-07 11:53
protectorChristian Graus11-Oct-07 11:53 
GeneralRe: Collision Pin
Pete O'Hanlon11-Oct-07 11:58
mvePete O'Hanlon11-Oct-07 11:58 
GeneralRe: Collision Pin
Christian Graus11-Oct-07 12:09
protectorChristian Graus11-Oct-07 12:09 
GeneralRe: Collision Pin
Pete O'Hanlon11-Oct-07 12:15
mvePete O'Hanlon11-Oct-07 12:15 
GeneralRe: Collision Pin
Christian Graus11-Oct-07 12:57
protectorChristian Graus11-Oct-07 12:57 
GeneralRe: Collision Pin
Patrick Etc.11-Oct-07 14:44
Patrick Etc.11-Oct-07 14:44 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 15:33
MasterSharp11-Oct-07 15:33 
GeneralRe: Collision Pin
Pete O'Hanlon11-Oct-07 21:55
mvePete O'Hanlon11-Oct-07 21:55 
AnswerRe: Collision Pin
Matthew Cuba11-Oct-07 14:14
Matthew Cuba11-Oct-07 14:14 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 15:37
MasterSharp11-Oct-07 15:37 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 15:48
MasterSharp11-Oct-07 15:48 
GeneralCare about GDI recourcess Pin
Martin#11-Oct-07 21:57
Martin#11-Oct-07 21:57 

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.