📗
Wiki
  • WIKI
  • Plugins
    • InfoHeads
      • Installation
      • FAQ
      • Using the Wizard
    • MailMe
      • Updating to MailMe Rewrite
      • FAQ
      • Setup
      • Tutorials
        • Niche
        • MailPresets
      • API
        • Setup
        • Interacting with the Database
  • Libraries
    • ProtectionAPI
      • Introduction
      • Getting Started
      • Tutorials
        • Creating a UniversalRegion
        • Collision Detection
      • Change Log
    • HexiTextLib
      • Introduction
      • Setup
        • Gradle
        • Maven
      • Using HexResolver
      • Using FontResolver
      • Change Log
Powered by GitBook
On this page

Was this helpful?

  1. Libraries
  2. ProtectionAPI
  3. Tutorials

Collision Detection

How to use and manipulate the collision detection features of the plugin

Collision Detection

This explains how to detect if another region is intersecting a UniversalRegion. This can be found in the UniversalRegion's method base.

This method is very efficient and uses an octree to split and lower the query time. Still, this should be ran async like most methods in this api.

UniversalRegion region = // UniversalRegion object;

List<UniversalRegions> intersects = region.getIntersectingRegions(/* Collection of Regions to Check against */);
PreviousCreating a UniversalRegionNextChange Log

Last updated 5 years ago

Was this helpful?