Line.collision() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
object
{handle:object|handle:instance}
No
precise?
Yes
excludedInstance?
{handle:instance}
Yes
list?
Yes
listOrdered?
Yes

Returns

{handle:int|List}

Description

Check for the presence of precise colision masks or bounding boxes of all instances of the specified object or a single specified instance. An ID of any matching instance or {noone} will be returned, unless specified to return them in a List, in which case any matching IDs will be added at the end of it. These additions can be pecified to be ordered by distance from the center of this Shape. An instance can be specified to exclude it from the result.

NOTE: The size of this shape will be treated as 1 for this operation.

⚠️ **GitHub.com Fallback** ⚠️