Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


World:new(xg, yg, sleep) =>Create a new world

World:draw() =>Draw colliders & joints, useful for debug

World:set_enter(fn) World:set_exit(fn) World:set_presolve(fn) World:set_postsolve(fn) =>Set a global collision callback function

World:add_class(name, ignore) =>Add a class and what other classes it ignore, it's a wrapper around box2d categories / masks as explained here:

World:add_joint(joint_type, collider1, collider2, ...) =>Add a joint:

World:add_collider(collider_type, ...) =>Add a collider to the world, a collider is an oject that contains a body, an a "main" shape. You can execute all fixtures/body/shapes functions on it.

You can’t perform that action at this time.