Skip to content

atl/sm/shapes

import "atl/sm/shapes"

Creating and inspecting shapes (sm.shape).

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) string
func UpperCaseTitle(uuid sm.Uuid) string

An item's display name / upper-case display name.

func TypeColor(uuid sm.Uuid) sm.Color

The color of the shape's type (block, part, ...) in the inventory.

func IsHarvest(uuid sm.Uuid) bool
func IsStackable(uuid sm.Uuid) bool

True for a harvested item / a stackable item.

func Exists(uuid sm.Uuid) bool

True if a shape with this uuid exists.

func InSphere(center sm.Vec3, radius float64) []sm.Shape

Shapes within a sphere.