class

Godot::ShapeCast2D

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
collision_result

Property collision_result getter

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_shapecast_update
Source
get_closest_collision_safe_fraction
Source
get_closest_collision_unsafe_fraction
Source
get_collider(index : Int64) : Godot::Object
Source
get_collider?(index : Int = 0) : Godot::Object | Nil

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

Source
get_collider_rid(index : Int64) : Int64
Source
get_collider_shape(index : Int64) : Int64
Source
get_collision_count
Source
get_collision_mask
Source
get_collision_mask_value(layer_number : Int64) : Bool
Source
get_collision_normal(index : Int64) : Vector2
Source
get_collision_point(index : Int64) : Vector2
Source
get_collision_result
Source
get_exclude_parent_body
Source
get_margin
Source
get_max_results
Source
get_shape
Source
get_target_position
Source
is_collide_with_areas_enabled
Source
is_collide_with_bodies_enabled
Source
is_colliding
Source
is_enabled
Source
margin

Property margin getter

Source
margin=(val : Number)

Property margin setter

Source
max_results

Property max_results getter

Source
max_results=(val : Int)

Property max_results setter

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_margin(margin : Float64) : Void
Source
set_max_results(max_results : Int64) : Void
Source
set_shape(shape : Shape2D) : Void
Source
set_target_position(local_point : Vector2) : Void
Source
shape

Property shape getter

Source
shape=(val)

Property shape setter

Source
target_position

Property target_position getter

Source
target_position=(val)

Property target_position setter

Source