• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker What's in_collision_tree?

rytan451

Member
So I was programming, and I noticed this built-in variable in_collision_tree. It isn't in the documentation, so does anyone have any idea what it is, what it does, and how to use it?
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
It indicates whether an instance is currently included in collision system's R-Tree. Instances are automatically added to the tree if they have collision events, or if they are being checked for via collision functions. Instances not in collision tree have no effect on performance as far as collision checking is concerned.
 

rytan451

Member
Then, would it be possible to make an instance ignored by collision functions or events by setting in_collision_tree? Hmm... I'll test it tonight.
 
C

Catastrophe

Guest
I'm assuming it's read-only, and if it's not I wouldn't mess with it tbh.
 
Top