Godot::CollisionObject2D
Inherits Godot::Node2D < Godot::CanvasItem < Godot::Node < Godot::Object < Reference < Object
Base class for all 2D collision and physics objects.
Constructors
new(pointer : Pointer(Void) = Pointer(Void).null)
SourceInstance methods
get_collision_layer
Sourceget_collision_layer_value(layer_number : Int64) : Bool
Sourceget_collision_mask
Sourceget_collision_mask_value(layer_number : Int64) : Bool
Sourceget_collision_priority
Sourceget_disable_mode
Sourceget_rid
Sourceget_shape_owner_one_way_collision_margin(owner_id : Int64) : Float64
Sourceget_shape_owners
Sourceinput_pickable?
Sourceis_pickable
Sourceis_shape_owner_disabled(owner_id : Int64) : Bool
Sourceis_shape_owner_one_way_collision_enabled(owner_id : Int64) : Bool
Sourceremove_shape_owner(owner_id : Int64) : Void
Sourceset_collision_layer(layer : Int64) : Void
Sourceset_collision_layer_value(layer_number : Int64, value : Bool) : Void
Sourceset_collision_mask(mask : Int64) : Void
Sourceset_collision_mask_value(layer_number : Int64, value : Bool) : Void
Sourceset_collision_priority(priority : Float64) : Void
Sourceset_disable_mode(mode : Int64) : Void
Sourceset_pickable(enabled : Bool) : Void
Sourceshape_find_owner(shape_index : Int64) : Int64
Sourceshape_owner_add_shape(owner_id : Int64, shape : Shape2D) : Void
Sourceshape_owner_clear_shapes(owner_id : Int64) : Void
Sourceshape_owner_get_shape(owner_id : Int64, shape_id : Int64) : Shape2D
Sourceshape_owner_get_shape_count(owner_id : Int64) : Int64
Sourceshape_owner_get_shape_index(owner_id : Int64, shape_id : Int64) : Int64
Sourceshape_owner_remove_shape(owner_id : Int64, shape_id : Int64) : Void
Sourceshape_owner_set_disabled(owner_id : Int64, disabled : Bool) : Void
Sourceshape_owner_set_one_way_collision(owner_id : Int64, enable : Bool) : Void
Sourceshape_owner_set_one_way_collision_margin(owner_id : Int64, margin : Float64) : Void
Source