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.


[View source]

Instance Method Detail

def basis : Godot::Basis #

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


[View source]
def basis=(basis : Godot::Basis) #

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


[View source]
def channel : String #

Filter channel / layer category this command belongs to.


[View source]
def channel=(channel : String) #

Filter channel / layer category this command belongs to.


[View source]
def color : Godot::Color #

Modulate vertex color for this shape.


[View source]
def color=(color : Godot::Color) #

Modulate vertex color for this shape.


[View source]
def duration : Float64 #

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


[View source]
def duration=(duration : Float64) #

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


[View source]
def expired? : Bool #

Returns true if the command has exceeded its duration lifetime.


[View source]
def f0 : Float32 #

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


[View source]
def f0=(f0 : Float32) #

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


[View source]
def f1 : Float32 #

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


[View source]
def f1=(f1 : Float32) #

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


[View source]
def f2 : Float32 #

Float parameter 2 (far plane or auxiliary float).


[View source]
def f2=(f2 : Float32) #

Float parameter 2 (far plane or auxiliary float).


[View source]
def f3 : Float32 #

Float parameter 3 (aspect ratio or auxiliary float).


[View source]
def f3=(f3 : Float32) #

Float parameter 3 (aspect ratio or auxiliary float).


[View source]
def hit : Bool #

Hit status flag for shape sweeps.


[View source]
def hit=(hit : Bool) #

Hit status flag for shape sweeps.


[View source]
def i0 : Int32 #

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


[View source]
def i0=(i0 : Int32) #

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


[View source]
def i1 : Int32 #

Integer parameter 1 (auxiliary segment count).


[View source]
def i1=(i1 : Int32) #

Integer parameter 1 (auxiliary segment count).


[View source]
def kind : ShapeKind3D #

The kind of 3D primitive to render.


[View source]
def kind=(kind : ShapeKind3D) #

The kind of 3D primitive to render.


[View source]
def on_top : Bool #

Whether this command renders on top with depth test disabled.


[View source]
def on_top=(on_top : Bool) #

Whether this command renders on top with depth test disabled.


[View source]
def path : Array(Godot::Vector3) | Nil #

Continuous polyline or points collection.


[View source]
def path=(path : Array(Godot::Vector3) | Nil) #

Continuous polyline or points collection.


[View source]
def pie_slices : Array(PieSlice) | Nil #

Chart slices for 3D pie charts.


[View source]
def pie_slices=(pie_slices : Array(PieSlice) | Nil) #

Chart slices for 3D pie charts.


[View source]
def remaining_time : Float64 #

Remaining lifetime in seconds before this command expires.


[View source]
def remaining_time=(remaining_time : Float64) #

Remaining lifetime in seconds before this command expires.


[View source]
def stats_hash : Hash(String, String) | Nil #

Key-value stats dictionary for 3D actor cards.


[View source]
def stats_hash=(stats_hash : Hash(String, String) | Nil) #

Key-value stats dictionary for 3D actor cards.


[View source]
def step(delta : Float64) : Void #

Advances time by delta seconds, decaying remaining duration.


[View source]
def title : String #

Label title for gauges or actor cards.


[View source]
def title=(title : String) #

Label title for gauges or actor cards.


[View source]
def v0 : Godot::Vector3 #

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


[View source]
def v0=(v0 : Godot::Vector3) #

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


[View source]
def v1 : Godot::Vector3 #

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


[View source]
def v1=(v1 : Godot::Vector3) #

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


[View source]
def v2 : Godot::Vector3 #

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


[View source]
def v2=(v2 : Godot::Vector3) #

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


[View source]
def v3 : Godot::Vector3 #

Vector parameter 3 (reserved auxiliary point).


[View source]
def v3=(v3 : Godot::Vector3) #

Vector parameter 3 (reserved auxiliary point).


[View source]
def wireframe : Bool #

Whether the box or shape is rendered as a wireframe.


[View source]
def wireframe=(wireframe : Bool) #

Whether the box or shape is rendered as a wireframe.


[View source]