Colliders.lua

Download Latest Version

Colliders is a library that helps manage custom collisions in LunaLua, making custom behaviour much easier!

It supports native collisions between players, NPCs and animations, as well as custom Box and Circle colliders to be constructed.

Installation
Place the file colliders.lua into the LuaScriptsLib folder.

How to use
To enable the Colliders library for a specific level, add this line to lunadll.lua: This will load the Colliders API.

Example
This will kill any NPC that touches the player (but may not stop them from killing the player too!)

The following is an example of creation of every kind of primitive collider:

This will create and draw 5 collider objects inside the level, and should look like this:



Classes
These are classes contained within this library

Vector
Values

Functions

Point
Values

Functions

Box
Values

Functions

Circle
Values

Functions

Tri
Values

Functions

Poly
Values

Functions

External Use Functions
These are functions you will need to use the library