collision_utilities

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Static utility methods for collision mapping.

Source File: addons/grid_building/placement/manager/components/mapper/collision_utilities.gd

Extends: RefCounted

Public Methods

get_rect_tile_positions

1
2
3
4
5
get_rect_tile_positions(
    p_map: TileMapLayer,
    global_center_position: Vector2,
    transformed_rect_size: Vector2
) -> Array[Vector2i]

Flags: static

Returns absolute tile coordinates overlapped by a rectangle centered at a world position.


does_indicator_overlap_shape

1
2
3
4
5
does_indicator_overlap_shape(
    tile_indicator: RuleCheckIndicator,
    shape: Shape2D,
    shape_owner: Node2D
) -> bool

Flags: static

Tests collision between indicator and a target shape.


object_matches_layer_mask

1
2
3
4
object_matches_layer_mask(
    collision_object: CollisionObject2D,
    mask: int
) -> bool

Flags: static

Check if a collision object matches the given layer mask