DrawLine3D: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 18: | Line 18: | ||
== Example == | == Example == | ||
Example usage can be found in the editor script package. | Example usage can be found in the map editor script package. | ||
https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/6f45ad9607e30c97f4f1d58443d808da632d4d91/mapeditor/client/editor.lua#L168 | https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/6f45ad9607e30c97f4f1d58443d808da632d4d91/mapeditor/client/editor.lua#L168 | ||
Line 33: | Line 33: | ||
* [[DrawRect]] | * [[DrawRect]] | ||
* [[DrawTexture]] | * [[DrawTexture]] | ||
* [[DrawTextureEx]] | |||
* [[DrawMaterial]] |
Latest revision as of 20:25, 30 August 2020
Description
Draws a line in 3d space.
Syntax
DrawLine3D(sX, sY, sZ, eX, eY, eZ [, thickness, bForeground])
Parameters
- sX
Start X location. - sY
Start Y location. - sZ
Start Z location. - eX
End X location. - eY
End Y location. - eZ
End Z location. - thickness (optional)
Line thickness, default: 1.0 - bForeground (optional)
true to draw in front of geometry, default: false
Return Value
- Returns nothing.
Example
Example usage can be found in the map editor script package. https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/6f45ad9607e30c97f4f1d58443d808da632d4d91/mapeditor/client/editor.lua#L168