Godot::ShapeCast2D
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_shapecast_update
Sourceget_closest_collision_safe_fraction
Sourceget_closest_collision_unsafe_fraction
SourceConvenience query returning the collider as Godot::Object? if alive, or nil if no hit or dead
get_collider_rid(index : Int64) : Int64
Sourceget_collider_shape(index : Int64) : Int64
Sourceget_collision_count
Sourceget_collision_mask
Sourceget_collision_mask_value(layer_number : Int64) : Bool
Sourceget_collision_result
Sourceget_exclude_parent_body
Sourceget_margin
Sourceget_max_results
Sourceget_shape
Sourceget_target_position
Sourceis_collide_with_areas_enabled
Sourceis_collide_with_bodies_enabled
Sourceis_colliding
Sourceis_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_margin(margin : Float64) : Void
Sourceset_max_results(max_results : Int64) : Void
Sourceset_shape(shape : Shape2D) : Void
Source