Grid Placement

physics_layer_manager

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: systems/manipulation/managers/physics_layer_manager.gd

Version: 5.1

class_name: (none) extends: RefCounted

Signals

(none)

Exports

(none)

Methods

  • disable_layer()
    • Disables a physics layer on all collision objects within target node hierarchy.

Searches for CollisionObject2D instances and disables specified physics layer. Tracks disabled objects for later re-enabling.

[param p_target] Node containing objects to disable [param p_layer] Physics layer to disable (0-31) [param p_disabled_track] Dictionary to track disabled objects [return] true if any objects were disabled, false otherwise

  • enable_layers()
    • Re-enables physics layers on all previously disabled objects.

Iterates through tracked disabled objects and restores their physics layer. Clears tracking dictionary when complete.

[param p_disabled_track] Dictionary of objects that were disabled [param p_layer] Physics layer to re-enable (0-31) [return] true if operation completed (may have skipped freed objects)

  • is_valid_layer()
    • Validates physics layer number is in valid range (0-31).

[param p_layer] Layer number to validate [return] true if layer is 0-31, false otherwise

  • _collect_collision_objects()
    • Recursively collects all CollisionObject2D nodes in target hierarchy.

[param p_node] Node to search [param p_results] Array to collect collision objects into