Skip to content

world_create

Create an empty static collision world. Add rectangles and query or move shapes in it. Available as world_create after import_globals() or mv.world.create.

Takes no arguments.

local world = world_create()
self.world = world

Related: world_move.

See the collision guide for more examples and limits.