PhysicsMatchingUtils2D
Summary
Section titled “Summary”Utilities for Getting Collision Shapes, Objects, and Polygons for Collision Tasks
Methods
Section titled “Methods”static func get_physics_layer_names( p_layers: Array[int] )static func get_layers_from_bitmask( p_bitmask: int ) -> Array[int]Gets the layer numbers that are active in a given mask value.
p_bitmask: int - Physics layer bitmask to extract layer numbers fromstatic func get_physics_layer_names_from_mask( p_bitmask: int ) -> Array[String]Gets the active layer names from a given physics mask int.
p_bitmask: int - Physics layer bitmask to get layer names forstatic func object_has_matching_layer( col_obj: CollisionObject2D, p_check_mask: int ) -> boolChecks if a collision object has any active physics layers that match a given bitmask.
col_obj: CollisionObject2D - Collision object to check layers forp_check_mask: int - Physics layer bitmask to match against
Source
Section titled “Source”addons/grid_building/utils/physics_matching_utils_2d.gd
This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.