Grid Placement

PhysicsMatchingUtils2D

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: utils/physics_matching_utils_2d.gd

Version: 5.0

class_name: PhysicsMatchingUtils2D

Signals

(none)

Exports

(none)

Methods

  • get_matching_collision_objects(p_container: Node2D, shape_cast: ShapeCast2D, require_all_mask_layers: bool = false) -> Array
  • get_castable_shapes(instance: Node2D, shape_cast: ShapeCast2D) -> Array
    • Get all nodes that are CollisionObject2D from the instance including the root node
  • get_castable_collision_polygons(instance: Node2D, shape_cast: ShapeCast2D) -> Array
    • Get all nodes that are CollisionObject2D from the instance including the root node
  • get_physics_layer_names(p_layers: Array)
  • get_layers_from_bitmask(p_bitmask: int) -> Array
  • get_physics_layer_names_from_mask(p_bitmask: int) -> Array
  • object_has_matching_layer(col_obj: CollisionObject2D, p_check_mask: int) -> bool