Grid Placement

placement_manager

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: systems/manipulation/managers/placement_manager.gd

Version: 5.1

class_name: (none) extends: RefCounted

Signals

(none)

Exports

(none)

Methods

  • _init()
  • try_placement()
    • Attempts to place a manipulated object at the current location.

[param p_move] ManipulationData containing source and move copy information [return] GBValidationResults with success status and any issues

  • _apply_placement_transforms()
    • Applies final transforms to the placed object.

CRITICAL: Preserve flip semantics when placing manipulated objects. The target copy is a child of ManipulationParent, which accumulates user transforms. Problem: Assigning global_transform directly normalizes negative scale to positive scale + rotation, losing the semantic distinction between flips (negative scale) and rotations. Solution: Extract transforms BEFORE ManipulationParent.reset() and apply via Manipulatable helper.

[param p_move] ManipulationData with move copy and source information