atl/sm/visualization
import "atl/sm/visualization"[client] The placement visualizations the game draws for the local player (sm.visualization).
Functions
Section titled "Functions"func CreateBlueprint(path string) sm.BlueprintVisualizationA ghost of the blueprint file at path.
func CreateBlueprintFrom(blueprint atl.Value) sm.BlueprintVisualizationA ghost of a blueprint table.
func CreateBuilderGuide(path string, shape sm.Shape, ignoreBlockUuid bool, completeEffect, completeEffectAtBase *string) sm.BlueprintVisualizationShows how to build blueprint path on the creation rooted at shape.
func DrawLine(from, to sm.Vec3, color *sm.Color)Draws a builder-guide connection line.
func SetBlockVisualization(position sm.Vec3, illegal bool)A block ghost at position in the world.
func SetBlockVisualizationOn(position sm.Vec3, illegal bool, on atl.Wrapper)A block ghost at position on a Lift, Shape or Joint.
func SetCreationBodies(bodies []sm.Body)func SetCreationVisible(visible bool)func SetCreationValid(valid bool, lift *bool)The creation (lift) visualization: which bodies it shows, and whether it's visible and valid.
func SetCreationFreePlacement(on bool)func SetCreationFreePlacementPosition(p sm.Vec3)func SetCreationFreePlacementRotation(index int)Free placement: position and rotation are set by you instead of by the lift.
func SetLiftVisible(visible bool)func SetLiftValid(valid bool)func SetLiftPosition(p sm.Vec3)func SetLiftLevel(level int)The lift ghost's visibility, validity, position and level.
ShapePlacement
Section titled "ShapePlacement"type ShapePlacement struct { IsLegal bool ShapeUuid sm.Uuid WorldPosition sm.Vec3 WorldRotation sm.Quat}The shape the local player is placing.
func ReadShapePlacement() ShapePlacementReads the current shape placement ghost.