Skip to content

bradsharp/gizmo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

About

gizmo is a visual debug library designed for the Roblox game engine.

Usage

API Reference

Types

The following types are supported:

  • point: Position
  • box: Orientation, Size
  • wirebox: Orientation, Size
  • sphere: Position, Radius
  • wiresphere: Position, Radius
  • line: Position, Position
  • arrow: Position, Position
  • ray: Position, Direction

gizmo.<type>.draw(...) -> void

Renders the gizmo for a single frame

gizmo.<type>.create(...) -> object

Creates a new object which can be rendered over multiple frames

object:enable() -> void

Starts rendering the gizmo

object:disable() -> void

Stops rendering the gizmo

object:update(...) -> void

Updates the gizmos appearance

object.style

Controls the 'style' of the gizmo

gizmo.style

The global style used by default when creating or drawing a gizmo

Examples

Drawing an array frame-by-frame

RunService.PostSimulation:Connect(function ()
  gizmo.arrow.draw(start, finish)
end)

Drawing an array with an object

local arrow = gizmo.arrow.create(start, finish)
arrow:enable()

RunService.PostSimulation:Connect(function ()
  arrow:update(start, finish)
end)

About

Visual Debug Library for the Roblox Game Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages