Game Development Reference
In-Depth Information
Sandbox.lua :
function Sandbox_HandleEvent(sandbox, event)
if (event.source == "keyboard" and event.pressed) then
if ( event.key == "f1_key" ) then
local drawDebug =
Sandbox.GetDrawPhysicsWorld(sandbox);
Sandbox.SetDrawPhysicsWorld(sandbox, not
drawDebug);
end
end
end
The following screenshot shows you the physics world that we have created:
Search WWH ::




Custom Search