Search | Statistics | User Listing Forums
XNA Resources
XNA Resources ->  XNAResources.com Tutorial Forums -> Star Defense Series -> View Thread

You are logged in as a guest. ( logon | register )

Tutorial Number 6
Jump to page : 1
Now viewing page 1 [25 messages per page]
View previous thread :: View next thread
   XNAResources.com Tutorial Forums -> Star Defense SeriesMessage format
 
vallnerik
Posted 2012-03-09 8:53 PM (#424)
Subject: Tutorial Number 6


Member

Posts: 11


(24.1.218.111)
There is an error in the part where you are talking about "What is a collision?"

"First, lets consider if these rectangles overlap vertically. If the bottom of the Red is greater than the top of yellow (and it is, 4 is greater 3) then it is possible that the rectangles overlap. Next, we would check to see of the Top of Red is less than the bottom of yellow (and it is 2 < 5). If it was not, but our first case was true, the red rectangle would be completely above the yellow."

Actually the red would be below the yellow, because if the bottom of the red is greater than the top of the yellow and if the top of the red is not less than the bottom of the yellow it could only be greater which would mean that both the bottom and top of the red are greater than the bottom of the yellow hence the yellow is above the red.



Edited by vallnerik 2012-03-09 8:54 PM
Top of the page Bottom of the page
Jump to page : 1
Now viewing page 1 [25 messages per page]
Jump to forum :
Search this forum
Printer friendly version
E-mail a link to this thread

(Delete all cookies set by this site)
Running MegaBBS ASP Forum Software
© 2002-2014 PD9 Software