Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

Line3D

Inherits: GeometryInstance3D < VisualInstance3D < Node3D < Node < Object

Inherited By: Trail3D

A node to draw 3D lines in space.

Note: This class currently has no functionality and only serves as a base class for Trail3D.


Enumerations

enum MeshAlignment: 🔗

MeshAlignment MESH_ALIGNMENT_LOCAL = 0

Align the line normal to the local Y axis of the line node.

MeshAlignment MESH_ALIGNMENT_BILLBOARD = 1

Align the normal of each section of the Line3D to face the camera.

See also SpriteBase3D.billboard and BillboardMode

MeshAlignment MESH_ALIGNMENT_MAX = 2

Represents the size of the MeshAlignment enum.


enum TilingMode: 🔗

TilingMode TILING_MODE_UNIT = 0

Assign UVs from 0 to 1 across the length of the line.

TilingMode TILING_MODE_LENGTH = 1

Assign UVs from 0 to current length, across the length of the line.

TilingMode TILING_MAX = 2

Represents the size of the TilingMode enum.


enum MaterialMode: 🔗

MaterialMode MATERIAL_MODE_MIX = 0

Assign a built-in mix material to the line.

MaterialMode MATERIAL_MODE_ADD = 1

Assign a built-in additive material to the line.

MaterialMode MATERIAL_MODE_CUSTOM = 2

Assign a custom material to the line.

MaterialMode MATERIAL_MODE_MAX = 3

Represents the size of the MaterialMode enum.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.