Part
Inherits BasePart
Part is the most basic building block in LemonEngine. It represents a physical object.
Examples
-- Create a platform
local platform = Instance.new("Part")
platform.Size = Vector3.new(20, 1, 20)
platform.Position = Vector3.new(0, 0, 0)
platform.Anchored = true
platform.Parent = workspace
Properties
When true, the part is not affected by physics
When true, the part can collide with other parts
When true, the part can be detected by raycasts
When true, the part can trigger touch events
The mass of the part calculated from size and material
When true, the part casts shadows
The transparency of the part from 0 (opaque) to 1 (invisible)
Methods
Returns the calculated mass of the part
local mass = part:GetMass()
print("Mass:", mass)