Grid Placement

CollisionScenarioBuilder

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: systems/placement/utilities/collision_scenario_builder.gd

Version: 5.1

class_name: CollisionScenarioBuilder extends: RefCounted

Signals

(none)

Exports

(none)

Methods

  • _init()
    • Initializes collision test setup for the given CollisionObject2D.
  • add_issue()
    • Records an issue encountered during setup.
  • free_testing_nodes()
    • Frees all testing nodes created during setup. Call this when the setup is no longer needed to prevent memory leaks.
  • validate_setup()
    • Validates the collision test setup and reports any issues. Returns true if setup is valid and ready for use, false otherwise.
  • _create_rect_tests_for_collision_object()
    • Creates RectCollisionScenarioBuilder instances for each shape owner in the CollisionObject2D.
  • _get_testing_rect_for_owner()
    • Calculates the testing rectangle for a shape owner node. Supports CollisionShape2D and CollisionPolygon2D nodes.
  • _adjust_rect_to_testing_size()
    • Expands the rectangle by shape_stretch_size to ensure comprehensive tile coverage. Handles complex transforms by converting to squares when rotation/skew is present.