atl/sm/debugdraw
import "atl/sm/debugdraw"sm.debugDraw: draws shapes in the world for debugging (dev mode only).
Functions
Section titled "Functions"func Arrow(name string, from, to sm.Vec3, color *sm.Color)Persistent shapes, identified by name. Drawing again under a name replaces the shape. An arrow from from to to.
func Sphere(name string, center sm.Vec3, radius float64, color *sm.Color)A sphere.
func Aabb(name string, min, max sm.Vec3, color *sm.Color)An axis-aligned box from min to max (world space).
func Box(name string, min, max, position sm.Vec3, rotation sm.Quat, color *sm.Color)A box with local extents min..max, placed at position/rotation.
func Text(name, text string, position sm.Vec3, color *sm.Color, scale float64)Text at a world position.
func Transform(name string, origin sm.Vec3, rotation sm.Quat, scale float64)XYZ axes at a transform.
func Remove(name string)Removes a named shape, whatever kind it was.
func Clear(name *string)Removes everything, or only what name identifies.
func FlashArrow(from, to sm.Vec3, color *sm.Color, seconds float64)func FlashSphere(center sm.Vec3, radius float64, color *sm.Color, seconds float64)func FlashAabb(min, max sm.Vec3, color *sm.Color, seconds float64)func FlashBox(min, max, position sm.Vec3, rotation sm.Quat, color *sm.Color, seconds float64)func FlashText(text string, position sm.Vec3, color *sm.Color, scale, seconds float64)Temporary shapes that disappear after seconds.