class

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)
Source

Instance methods

collision_layer

Property collision_layer getter

Source
collision_layer=(val : Int)

Property collision_layer setter

Source
collision_mask

Property collision_mask getter

Source
collision_mask=(val : Int)

Property collision_mask setter

Source
collision_priority

Property collision_priority getter

Source
collision_priority=(val : Number)

Property collision_priority setter

Source
create_shape_owner(owner : Godot::Object) : Int64
Source
disable_mode

Property disable_mode getter

Source
disable_mode=(val : Int)

Property disable_mode setter

Source
get_collision_layer
Source
get_collision_layer_value(layer_number : Int64) : Bool
Source
get_collision_mask
Source
get_collision_mask_value(layer_number : Int64) : Bool
Source
get_collision_priority
Source
get_disable_mode
Source
get_rid
Source
get_shape_owner_one_way_collision_direction(owner_id : Int64) : Vector2
Source
get_shape_owner_one_way_collision_margin(owner_id : Int64) : Float64
Source
get_shape_owners
Source
input_pickable

Property input_pickable getter

Source
input_pickable=(val)

Property input_pickable setter

Source
input_pickable?
Source
is_pickable
Source
is_shape_owner_disabled(owner_id : Int64) : Bool
Source
is_shape_owner_one_way_collision_enabled(owner_id : Int64) : Bool
Source
remove_shape_owner(owner_id : Int64) : Void
Source
set_collision_layer(layer : Int64) : Void
Source
set_collision_layer_value(layer_number : Int64, value : Bool) : Void
Source
set_collision_mask(mask : Int64) : Void
Source
set_collision_mask_value(layer_number : Int64, value : Bool) : Void
Source
set_collision_priority(priority : Float64) : Void
Source
set_disable_mode(mode : Int64) : Void
Source
set_pickable(enabled : Bool) : Void
Source
shape_find_owner(shape_index : Int64) : Int64
Source
shape_owner_add_shape(owner_id : Int64, shape : Shape2D) : Void
Source
shape_owner_clear_shapes(owner_id : Int64) : Void
Source
shape_owner_get_owner(owner_id : Int64) : Godot::Object
Source
shape_owner_get_shape(owner_id : Int64, shape_id : Int64) : Shape2D
Source
shape_owner_get_shape_count(owner_id : Int64) : Int64
Source
shape_owner_get_shape_index(owner_id : Int64, shape_id : Int64) : Int64
Source
shape_owner_get_transform(owner_id : Int64) : Transform2D
Source
shape_owner_remove_shape(owner_id : Int64, shape_id : Int64) : Void
Source
shape_owner_set_disabled(owner_id : Int64, disabled : Bool) : Void
Source
shape_owner_set_one_way_collision(owner_id : Int64, enable : Bool) : Void
Source
shape_owner_set_one_way_collision_direction(owner_id : Int64, direction : Vector2) : Void
Source
shape_owner_set_one_way_collision_margin(owner_id : Int64, margin : Float64) : Void
Source
shape_owner_set_transform(owner_id : Int64, transform : Transform2D) : Void
Source

Nested types