atl/sm/shapes
import "atl/sm/shapes"Creating and inspecting shapes (sm.shape).
Functions
Section titled "Functions"func CreatePart(uuid sm.Uuid, position sm.Vec3, rotation sm.Quat, dynamic bool) sm.Shape[server] Creates a part.
func CreateBlock(uuid sm.Uuid, size, position sm.Vec3, rotation sm.Quat, dynamic bool) sm.Shape[server] Creates a block of size.
func CreateWedge(uuid sm.Uuid, size, position sm.Vec3, rotation sm.Quat, dynamic, forceSpawn bool) sm.Shape[server] Creates a wedge of size with its corner at position.
func Title(uuid sm.Uuid) stringfunc UpperCaseTitle(uuid sm.Uuid) stringAn item's display name / upper-case display name.
func TypeColor(uuid sm.Uuid) sm.ColorThe color of the shape's type (block, part, ...) in the inventory.
func IsHarvest(uuid sm.Uuid) boolfunc IsStackable(uuid sm.Uuid) boolTrue for a harvested item / a stackable item.
func Exists(uuid sm.Uuid) boolTrue if a shape with this uuid exists.
func InSphere(center sm.Vec3, radius float64) []sm.ShapeShapes within a sphere.