PhysicsSystem:world
Returns the love.World managed by this system.
Usage
physics_system:world()
Returns
| Name | Type | Description |
|---|---|---|
world | love.World | Physics world managed by this system. |
Examples
local ecs = crystal.ECS:new();
local physics_system = ecs:add_system(crystal.PhysicsSystem);
physics_system:world():setGravity(0, 10);