Manipulatable
[param p_position] Final world position...
[param p_position] Final world position for the root object [param p_rotation] Accumulated rotation in radians from ManipulationParent [param p_scale] Accumulated scale (may include negative values for flips)
Version: v5.0.0
Inherits: GBGameNode
Source: manipulatable.gd
Parsing: AST-based for maximum accuracy with symbol typing
Constants
keep_during_preview
Special marker that tells building system to keep this script during preview
Value: true
Variables
_logger: GBLogger
Type: GBLogger
Signals
manipulation_finished(old_transform: Transform2D, new_transform: Transform2D)
- new_transform: Transform2D - The transform after manipulation
Parameters:
old_transform: Transform2Dnew_transform: Transform2D
Methods
resolve_gb_dependencies
Signature: resolve_gb_dependencies(p_container : GBCompositionContainer: Variant) -> void
Returns: void
Parameters:
p_container : GBCompositionContainer: Variant
is_root_hierarchy_valid
Signature: is_root_hierarchy_valid() -> bool
Returns true if the configured root is an ancestor (direct or indirect) of this Manipulatable node.
Returns: bool
create_copy
Signature: create_copy(p_name_postfix : String: Variant) -> Manipulatable
p_name_postfix: String - Name postfix to append to the duplicated root’s name
Returns: Manipulatable
Parameters:
p_name_postfix : String: Variant
get_move_rules
Signature: get_move_rules() -> Array
Gets move rules from the manipulatable settings, or empty array if no settings.
Returns: Array
is_demolishable
Signature: is_demolishable() -> bool
Checks the demolishable flag in the manipulatable settings.
Returns: bool
is_movable
Signature: is_movable() -> bool
Checks the movable flag in the manipulatable settings.
Returns: bool
validate_setup
Signature: validate_setup() -> bool
Returns true if setup is valid, false if required properties are missing.
Returns: bool
get_issues
Signature: get_issues() -> Array
Returns: Array
_on_root_exiting
Signature: _on_root_exiting() -> void
Step 3: Emit completion signal with before/after transforms
Returns: void
_apply_manipulation_transforms
Signature: _apply_manipulation_transforms(p_position: Vector2, p_rotation: float, p_scale: Vector2) -> void
[param p_scale] Accumulated scale (may include negative values for flips)
Returns: void
Parameters:
p_position: Vector2p_rotation: floatp_scale: Vector2