class Diorite::Command3D

Overview

Internal command payload representing an immediate-mode 3D draw request.

Defined in:

diorite/core/debug_command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(kind : ShapeKind3D, color : Godot::Color = Godot::Color.new(1.0_f32, 1.0_f32, 1.0_f32, 1.0_f32), duration : Float64 = 0.0, on_top : Bool = true) #

Creates a new 3D command with default parameters.


Instance Method Detail

def basis : Godot::Basis #

3x3 rotation orientation matrix for oriented boxes, gizmos, and frustums.


def basis=(basis : Godot::Basis) #

3x3 rotation orientation matrix for oriented boxes, gizmos, and frustums.


def channel : String #

Filter channel / layer category this command belongs to.


def channel=(channel : String) #

Filter channel / layer category this command belongs to.


def color : Godot::Color #

Modulate vertex color for this shape.


def color=(color : Godot::Color) #

Modulate vertex color for this shape.


def duration : Float64 #

Total lifetime duration in seconds (0.0 for single-frame).


def duration=(duration : Float64) #

Total lifetime duration in seconds (0.0 for single-frame).


def expired? : Bool #

Returns true if the command has exceeded its duration lifetime.


def f0 : Float32 #

Float parameter 0 (radius, length, or FOV).


def f0=(f0 : Float32) #

Float parameter 0 (radius, length, or FOV).


def f1 : Float32 #

Float parameter 1 (height, range, or near plane).


def f1=(f1 : Float32) #

Float parameter 1 (height, range, or near plane).


def f2 : Float32 #

Float parameter 2 (far plane or auxiliary float).


def f2=(f2 : Float32) #

Float parameter 2 (far plane or auxiliary float).


def f3 : Float32 #

Float parameter 3 (aspect ratio or auxiliary float).


def f3=(f3 : Float32) #

Float parameter 3 (aspect ratio or auxiliary float).


def hit : Bool #

Hit status flag for shape sweeps.


def hit=(hit : Bool) #

Hit status flag for shape sweeps.


def i0 : Int32 #

Integer parameter 0 (subdivisions, segments, or coils).


def i0=(i0 : Int32) #

Integer parameter 0 (subdivisions, segments, or coils).


def i1 : Int32 #

Integer parameter 1 (auxiliary segment count).


def i1=(i1 : Int32) #

Integer parameter 1 (auxiliary segment count).


def kind : ShapeKind3D #

The kind of 3D primitive to render.


def kind=(kind : ShapeKind3D) #

The kind of 3D primitive to render.


def on_top : Bool #

Whether this command renders on top with depth test disabled.


def on_top=(on_top : Bool) #

Whether this command renders on top with depth test disabled.


def path : Array(Godot::Vector3) | Nil #

Continuous polyline or points collection.


def path=(path : Array(Godot::Vector3) | Nil) #

Continuous polyline or points collection.


def path_slice : Slice(Godot::Vector3) #

Zero-allocation arena-backed polyline or points slice.


def path_slice=(path_slice : Slice(Godot::Vector3)) #

Zero-allocation arena-backed polyline or points slice.


def pie_slices : Array(PieSlice) | Nil #

Chart slices for 3D pie charts.


def pie_slices=(pie_slices : Array(PieSlice) | Nil) #

Chart slices for 3D pie charts.


def remaining_time : Float64 #

Remaining lifetime in seconds before this command expires.


def remaining_time=(remaining_time : Float64) #

Remaining lifetime in seconds before this command expires.


def stats_hash : Hash(String, String) | Nil #

Key-value stats dictionary for 3D actor cards.


def stats_hash=(stats_hash : Hash(String, String) | Nil) #

Key-value stats dictionary for 3D actor cards.


def step(delta : Float64) : Void #

Advances time by delta seconds, decaying remaining duration.


def title : String #

Label title for gauges or actor cards.


def title=(title : String) #

Label title for gauges or actor cards.


def v0 : Godot::Vector3 #

Vector parameter 0 (primary position, start point, or center).


def v0=(v0 : Godot::Vector3) #

Vector parameter 0 (primary position, start point, or center).


def v1 : Godot::Vector3 #

Vector parameter 1 (end point, dimensions, normal, or velocity).


def v1=(v1 : Godot::Vector3) #

Vector parameter 1 (end point, dimensions, normal, or velocity).


def v2 : Godot::Vector3 #

Vector parameter 2 (normal, acceleration, or target).


def v2=(v2 : Godot::Vector3) #

Vector parameter 2 (normal, acceleration, or target).


def v3 : Godot::Vector3 #

Vector parameter 3 (reserved auxiliary point).


def v3=(v3 : Godot::Vector3) #

Vector parameter 3 (reserved auxiliary point).


def wireframe : Bool #

Whether the box or shape is rendered as a wireframe.


def wireframe=(wireframe : Bool) #

Whether the box or shape is rendered as a wireframe.