class Godot::RaycastBuilder3D

Overview

Fluent builder for constructing and executing 3D raycasts.

Defined in:

libgodot/extensions/physics.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

try?(&)
try?
try?

Constructor Detail

def self.new(origin_node : Node3D, to_pos : Vector3 | Nil = nil) #

Instance Method Detail

def areas(enable : Bool = true) : self #

def bodies(enable : Bool = true) : self #

def collide? : Bool #

def collide_with_areas? : Bool #

def collide_with_bodies? : Bool #

def direction(dir : Vector3, distance : Float64 = 10.0) : self #

def exclude(list : Enumerable(Godot::Object | Godot::RID)) : self #

def exclude(*objects : Godot::Object | Godot::RID) : self #

def exclude_list : Array(Godot::Object | Godot::RID) #

def from(pos : Vector3) : self #

def from_pos : Vector3 #

def mask(mask : UInt32 | Int) : self #

def mask_val : UInt32 #

def origin_node : Node3D #

def query : PhysicsHit3D | Nil #

def to(pos : Vector3) : self #

def to_pos : Vector3 | Nil #