You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

Game Play :: Collisions

collision_line_first(x1,y1,x2,y2,object,prec,notme)
Returns the instance id of an object colliding with a given line and closest to the first point, or noone if no instance found.
collision_normal(x, y, obj, radius, spacing)
Returns a 2D "surface normal" at a point on or near an instance within a test area.
collision_triangle(x1, y1, x2, y2, x3, y3, object)
Returns an object instance id that collides with a given triangle.
range_finder(x,y,dir,range,object,prec,notme)
Returns the exact distance to the nearest instance of an object in a given direction from a given point, or noone if no instance is found.