GameMaker (2.0 - 2.2.x)
Icon

Advanced Collision Box

Pixelplant-Studios

You must be logged in to obtain assets

Description

This asset provides two types of bounding-boxes:

  1. Normal: A normal bounding-box very similar to the build-in bbox_bottom, bbox_left attributes, but array-based
  2. Advanced: Extends the normal bounding-box with a tree-based data-structure to build a bounding-box based on other bounding-boxes

Check for collision (intersection/containment) between a bounding-box and a:

  1. Point
  2. Rectangle
  3. Line
  4. Circle
  5. Triangle
  6. Other Bounding Box
  7. Instance

This also supports:

  1. Overlap: Calculates the overlap of two bounding-box
  2. Clipping: Divide a bounding-box into nine areas by cutting one box out of the other
  3. Docking: Dock one bounding-box to another bounding-box (there are nine dock-positions: LEFT, TOP_LEFT, TOP, TOP_RIGHT, RIGHT, BOTTOM_RIGHT, BOTTOM, BOTTM_LEFT and CENTER)
  4. Search: Find all instances or find nearest/furthest instance of a certain type within a bounding-box

Code-snippet that generates the separation-view of the demo (second screenshot): snippet_pp_bbox_separation

Documentation: API

End User Licence Agreement (EULA).

Age Rating: None

Version

GMS2 - Version 1.0.0. Published May 7, 2018

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait