Radius
Type
Initialised Value
Description
-- entity.lua
local function init(self)
self.Physics = true
local radius = 4
local sphere_shape = api.physics.NewSphereShape(radius)
local sphere = api.physics.NewBody(sphere_shape, 1)
self.Body = sphere
end
-- Create a sphere shape and a body. Assign it to the entity.Last updated