NewBoxShape
Name
Type
Description
Type
Description
-- entity.lua
local function init(self)
self.Physics = true
local box = api.physics.NewBoxShape(1, 1, 1)
self.Body = api.physics.NewBody(box, 10)
end
-- This entity will occupy a box-shaped area, for physics calculations.Last updated