What this component contains
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcamera_room_bounds.gdcomponent.jsoninspect_gdscript.pyrun_tests.gdtest_package.pytests/test_camera_room_bounds.gdverification/native.json
How it works
- Class
- BaltorRoomCamera2D, extends Node
- Methods
- add_room(area: Rect2) -> int; room_at(point: Vector2) -> int; clamp_center(center: Vector2, view_size: Vector2, area: Rect2) -> Vector2; update_center(camera_center: Vector2, target: Vector2, view_size: Vector2, delta: float) -> Vector2; get_current_room() -> int; is_transitioning() -> bool
- Signals
- room_changed
- Exports
- camera_path, target_path, rooms, transition_time
- Placement
- res://baltor/godot_components/camera_room_bounds/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
godot_parse_check_onlygodot_gdscript_testsgodot_tests_reject_gutted_componentgodot_editor_importgodot_contract_reflectiongodot_readme_usage_compiles
Limits to consider
Axis-aligned rectangular rooms only. Overlapping rooms keep the current room until the target leaves it. The view size comes from the viewport and the camera zoom. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.