Module box2d

Box2D plugin for STI

Info:

  • Copyright: 2016
  • License: MIT/X11
  • Author: Landon Manning

Functions

box2d_draw (map) Draw Box2D physics world.
box2d_init (world) Initialize Box2D physics world.
box2d_removeLayer (index) Remove Box2D fixtures and shapes from world.

Tables

Properties Custom Properties in Tiled are used to tell this plugin what to do.


Functions

box2d_draw (map)
Draw Box2D physics world.

Parameters:

  • map

Returns:

    nil
box2d_init (world)
Initialize Box2D physics world.

Parameters:

  • world The Box2D world to add objects to.

Returns:

    nil
box2d_removeLayer (index)
Remove Box2D fixtures and shapes from world.

Parameters:

  • index The index or name of the layer being removed

Returns:

    nil

Tables

Properties
Custom Properties in Tiled are used to tell this plugin what to do.

Fields:

  • collidable set to true, can be used on any Layer, Tile, or Object
  • sensor set to true, can be used on any Tile or Object that is also collidable
generated by LDoc 1.4.3 Last updated 2016-06-09 23:18:58