Godot::RayCast2D
Inherits Godot::Node2D < Godot::CanvasItem < Godot::Node < Godot::Object < Reference < Object
Constructors
new(pointer : Pointer(Void) = Pointer(Void).null)
SourceInstance methods
add_exception(node : CollisionObject2D) : Void
Sourceadd_exception_rid(rid : Int64) : Void
Sourceclear_exceptions
Sourcecollide_with_areas?
Sourcecollide_with_bodies?
Sourceenabled?
Sourceexclude_parent?
Sourceforce_raycast_update
Sourceget_collider
Sourceget_collider?
Convenience query returning the collider as Godot::Object? if alive, or nil if no hit or dead
get_collider_rid
Sourceget_collider_shape
Sourceget_collision_mask
Sourceget_collision_mask_value(layer_number : Int64) : Bool
Sourceget_collision_normal
Sourceget_collision_point
Sourceget_exclude_parent_body
Sourceget_target_position
Sourcehit_from_inside?
Sourceis_collide_with_areas_enabled
Sourceis_collide_with_bodies_enabled
Sourceis_colliding
Sourceis_enabled
Sourceis_hit_from_inside_enabled
Sourceremove_exception(node : CollisionObject2D) : Void
Sourceremove_exception_rid(rid : Int64) : Void
Sourceset_collide_with_areas(enable : Bool) : Void
Sourceset_collide_with_bodies(enable : Bool) : Void
Sourceset_collision_mask(mask : Int64) : Void
Sourceset_collision_mask_value(layer_number : Int64, value : Bool) : Void
Sourceset_enabled(enabled : Bool) : Void
Sourceset_exclude_parent_body(mask : Bool) : Void
Sourceset_hit_from_inside(enable : Bool) : Void
Source