class

Godot::RayCast2D

Inherits Godot::Node2D < Godot::CanvasItem < Godot::Node < Godot::Object < Reference < Object

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

add_exception(node : CollisionObject2D) : Void
Source
add_exception_rid(rid : Int64) : Void
Source
clear_exceptions
Source
collide_with_areas

Property collide_with_areas getter

Source
collide_with_areas=(val)

Property collide_with_areas setter

Source
collide_with_areas?
Source
collide_with_bodies

Property collide_with_bodies getter

Source
collide_with_bodies=(val)

Property collide_with_bodies setter

Source
collide_with_bodies?
Source
collision_mask

Property collision_mask getter

Source
collision_mask=(val : Int)

Property collision_mask setter

Source
enabled

Property enabled getter

Source
enabled=(val)

Property enabled setter

Source
enabled?
Source
exclude_parent

Property exclude_parent getter

Source
exclude_parent=(val)

Property exclude_parent setter

Source
exclude_parent?
Source
force_raycast_update
Source
get_collider
Source
get_collider?

Convenience query returning the collider as Godot::Object? if alive, or nil if no hit or dead

Source
get_collider_rid
Source
get_collider_shape
Source
get_collision_mask
Source
get_collision_mask_value(layer_number : Int64) : Bool
Source
get_collision_normal
Source
get_collision_point
Source
get_exclude_parent_body
Source
get_target_position
Source
hit_from_inside

Property hit_from_inside getter

Source
hit_from_inside=(val)

Property hit_from_inside setter

Source
hit_from_inside?
Source
is_collide_with_areas_enabled
Source
is_collide_with_bodies_enabled
Source
is_colliding
Source
is_enabled
Source
is_hit_from_inside_enabled
Source
remove_exception(node : CollisionObject2D) : Void
Source
remove_exception_rid(rid : Int64) : Void
Source
set_collide_with_areas(enable : Bool) : Void
Source
set_collide_with_bodies(enable : Bool) : Void
Source
set_collision_mask(mask : Int64) : Void
Source
set_collision_mask_value(layer_number : Int64, value : Bool) : Void
Source
set_enabled(enabled : Bool) : Void
Source
set_exclude_parent_body(mask : Bool) : Void
Source
set_hit_from_inside(enable : Bool) : Void
Source
set_target_position(local_point : Vector2) : Void
Source
target_position

Property target_position getter

Source
target_position=(val)

Property target_position setter

Source