Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.
Utility functions for geometry calculations and shape operations. Provides static methods for working with collision shapes, bounding boxes, and coordinate transformations in grid building contexts.
Source: addons/grid_placement/utils/placement_geometry_utils.gd
Syntax
class PlacementGeometryUtilsMembers
| Name | Kind | Summary |
|---|---|---|
points_array_to_rect_2d | Method | |
left_bound | Property | |
right_bound | Property | |
top_bound | Property | |
bottom_bound | Property | |
size | Property | |
generated_rect | Property | |
get_collision_object_shapes | Method | |
shapes_dict | Property | |
shape_owners | Property | |
shape_count | Property | |
shape | Property | |
shapes | Property | |
get_all_collision_shapes_by_owner | Method | |
result | Property | |
shapes | Property | |
get_shapes_from_owner | Method | |
shapes | Property | |
shape_owners | Property | |
shape_count | Property | |
shape | Property | |
collision_shape | Property | |
convex_parts | Property | |
poly_shape | Property | |
grow_rect2_to_increment | Method | |
adjusted_rect | Property | |
new_size_x | Property | |
new_size_y | Property | |
grow_rect2_to_square | Method | |
abs_rect_size | Property | |
abs_larger_dimension | Property | |
larger_dimension_size | Property | |
get_rect2_position_offset | Method | |
get_overlapped_tiles_for_rect | Method | |
tile_size | Property | |
half_size | Property | |
left | Property | |
right | Property | |
top | Property | |
bottom | Property | |
left_tile | Property | |
right_tile | Property | |
top_tile | Property | |
bottom_tile | Property | |
tile_positions | Property | |
get_overlapped_tiles_for_polygon | Method | |
overlapped | Property | |
tile_shape | Property | |
tile_size | Property | |
aabb | Property | |
aabb_corners | Property | |
mapped | Property | |
min_x | Property | |
max_x | Property | |
min_y | Property | |
max_y | Property | |
cell | Property | |
cell_center | Property | |
cell_pos | Property | |
is_tile_covered_by_collision_shape | Method | |
shape_poly | Property | |
rect | Property | |
ext | Property | |
shape_pos | Property | |
is_tile_covered_by_collision_polygon | Method |
Source
addons/grid_placement/utils/placement_geometry_utils.gd
Plugin docs root:gdscript/plugins/grid_placement_dev/docs