gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfxgfx
 
Members, please note that our guidelines are located here.
 
gfx gfx
gfx
484586 Posts in 28410 Topics by 2464 Members - Latest Member: austinrobert July 11, 2020, 06:36:15 PM
*
gfx* Home | Help | Calendar | Login | Register | gfx
gfx
The Gaming Universe  |  The Archives  |  Archived Projects  |  Open Zelda  |  OZ Help (Moderator: red_team316)  |  AngleCollide
gfx
gfxgfx
 

Author Topic: AngleCollide  (Read 432 times)

Offline KingOfHumans

  • Messiah
  • ******
  • Posts: 17,866
    • View Profile
AngleCollide
« on: July 29, 2010, 01:26:44 PM »
I've been working on a new tutorial here and there and just thought I should post the part of my tutorial that talks about AngleCollide. This function confused me personally for quite a while, and others as well. So here's a quote from my tutorial that should help you guys out. I also fixed up the wiki a bit for this function as some of the information was wrong.


Quote from: QD Tutorial
So take a look at "if(!AngleCollide("this",5,5, 204, false, width / 2, height / 2))". Imagine yourself in the center of a circle (width / 2 and height / 2 is where you start). The first 5 is the distance, so that means you can take five steps. The second 5 is the amount of different directions you can go. If there's some object with a mask value of 204 or lower you can not go any further. Pretend you can fly so your not afraid to go over holes (this is what the false is for) so you pass right over it. So if there's nothing solid in your way it will return true, otherwise false. Get it now?

Offline Khatuni

  • Executive
  • ***
  • Posts: 1,007
    • View Profile
AngleCollide
« Reply #1 on: July 30, 2010, 06:42:41 AM »
Nice, that must clear it up for a lot of people.
Is the holes function still going to be hardcoded in OZ7?

The Gaming Universe  |  The Archives  |  Archived Projects  |  Open Zelda  |  OZ Help (Moderator: red_team316)  |  AngleCollide
 

gfxgfx
gfx
SMF 2.0.17 | SMF © 2019, Simple Machines Page created in 0.256 seconds with 21 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!