class
Diorite::Command3D
- Diorite::Command3D
- Reference
- Object
Overview
Internal command payload representing an immediate-mode 3D draw request.
Defined in:
diorite/core/debug_command.crConstructors
-
.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 Summary
-
#basis : Godot::Basis
3x3 rotation orientation matrix for oriented boxes, gizmos, and frustums.
-
#basis=(basis : Godot::Basis)
3x3 rotation orientation matrix for oriented boxes, gizmos, and frustums.
-
#channel : String
Filter channel / layer category this command belongs to.
-
#channel=(channel : String)
Filter channel / layer category this command belongs to.
-
#color : Godot::Color
Modulate vertex color for this shape.
-
#color=(color : Godot::Color)
Modulate vertex color for this shape.
-
#duration : Float64
Total lifetime duration in seconds (
0.0for single-frame). -
#duration=(duration : Float64)
Total lifetime duration in seconds (
0.0for single-frame). -
#expired? : Bool
Returns true if the command has exceeded its duration lifetime.
-
#f0 : Float32
Float parameter 0 (radius, length, or FOV).
-
#f0=(f0 : Float32)
Float parameter 0 (radius, length, or FOV).
-
#f1 : Float32
Float parameter 1 (height, range, or near plane).
-
#f1=(f1 : Float32)
Float parameter 1 (height, range, or near plane).
-
#f2 : Float32
Float parameter 2 (far plane or auxiliary float).
-
#f2=(f2 : Float32)
Float parameter 2 (far plane or auxiliary float).
-
#f3 : Float32
Float parameter 3 (aspect ratio or auxiliary float).
-
#f3=(f3 : Float32)
Float parameter 3 (aspect ratio or auxiliary float).
-
#hit : Bool
Hit status flag for shape sweeps.
-
#hit=(hit : Bool)
Hit status flag for shape sweeps.
-
#i0 : Int32
Integer parameter 0 (subdivisions, segments, or coils).
-
#i0=(i0 : Int32)
Integer parameter 0 (subdivisions, segments, or coils).
-
#i1 : Int32
Integer parameter 1 (auxiliary segment count).
-
#i1=(i1 : Int32)
Integer parameter 1 (auxiliary segment count).
-
#kind : ShapeKind3D
The kind of 3D primitive to render.
-
#kind=(kind : ShapeKind3D)
The kind of 3D primitive to render.
-
#on_top : Bool
Whether this command renders on top with depth test disabled.
-
#on_top=(on_top : Bool)
Whether this command renders on top with depth test disabled.
-
#path : Array(Godot::Vector3) | Nil
Continuous polyline or points collection.
-
#path=(path : Array(Godot::Vector3) | Nil)
Continuous polyline or points collection.
-
#path_slice : Slice(Godot::Vector3)
Zero-allocation arena-backed polyline or points slice.
-
#path_slice=(path_slice : Slice(Godot::Vector3))
Zero-allocation arena-backed polyline or points slice.
-
#pie_slices : Array(PieSlice) | Nil
Chart slices for 3D pie charts.
-
#pie_slices=(pie_slices : Array(PieSlice) | Nil)
Chart slices for 3D pie charts.
-
#remaining_time : Float64
Remaining lifetime in seconds before this command expires.
-
#remaining_time=(remaining_time : Float64)
Remaining lifetime in seconds before this command expires.
-
#stats_hash : Hash(String, String) | Nil
Key-value stats dictionary for 3D actor cards.
-
#stats_hash=(stats_hash : Hash(String, String) | Nil)
Key-value stats dictionary for 3D actor cards.
-
#step(delta : Float64) : Void
Advances time by delta seconds, decaying remaining duration.
-
#title : String
Label title for gauges or actor cards.
-
#title=(title : String)
Label title for gauges or actor cards.
-
#v0 : Godot::Vector3
Vector parameter 0 (primary position, start point, or center).
-
#v0=(v0 : Godot::Vector3)
Vector parameter 0 (primary position, start point, or center).
-
#v1 : Godot::Vector3
Vector parameter 1 (end point, dimensions, normal, or velocity).
-
#v1=(v1 : Godot::Vector3)
Vector parameter 1 (end point, dimensions, normal, or velocity).
-
#v2 : Godot::Vector3
Vector parameter 2 (normal, acceleration, or target).
-
#v2=(v2 : Godot::Vector3)
Vector parameter 2 (normal, acceleration, or target).
-
#v3 : Godot::Vector3
Vector parameter 3 (reserved auxiliary point).
-
#v3=(v3 : Godot::Vector3)
Vector parameter 3 (reserved auxiliary point).
-
#wireframe : Bool
Whether the box or shape is rendered as a wireframe.
-
#wireframe=(wireframe : Bool)
Whether the box or shape is rendered as a wireframe.
Constructor Detail
Creates a new 3D command with default parameters.
Instance Method Detail
3x3 rotation orientation matrix for oriented boxes, gizmos, and frustums.
3x3 rotation orientation matrix for oriented boxes, gizmos, and frustums.
Zero-allocation arena-backed polyline or points slice.
Remaining lifetime in seconds before this command expires.
Key-value stats dictionary for 3D actor cards.