[gd_scene load_steps=12 format=4 uid="uid://bfxgtf1v1okat"]

[ext_resource type="Script" uid="uid://bj7oafusrrsk" path="res://Scripts/card_item.gd" id="1_rlle2"]
[ext_resource type="PackedScene" uid="uid://dixtx38u4jhd7" path="res://Scenes/UI/card_hand.tscn" id="2_aiko0"]
[ext_resource type="Script" uid="uid://cl2mi4bnpatwk" path="res://Scripts/float_and_spin.gd" id="3_jjaja"]
[ext_resource type="Texture2D" uid="uid://b0sl2tvwle1m7" path="res://Classes/Mage/scroll2_paper.png" id="4_aiko0"]
[ext_resource type="Material" uid="uid://0273wjmwcpa5" path="res://Classes/Mage/mouse_hover_material2.tres" id="5_jjaja"]

[sub_resource type="BoxShape3D" id="BoxShape3D_mfxja"]
size = Vector3(0.538452, 1.47153, 1.05554)

[sub_resource type="ViewportTexture" id="ViewportTexture_11rd4"]
viewport_path = NodePath("SubViewport")

[sub_resource type="Curve" id="Curve_ehsyn"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.5, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_wwylk"]
resource_name = "paper"
cull_mode = 2
albedo_texture = ExtResource("4_aiko0")
roughness = 0.5
texture_filter = 2

[sub_resource type="ArrayMesh" id="ArrayMesh_476un"]
_surfaces = [{
"aabb": AABB(-0.653174, -0.755608, -0.491079, 1.3136, 1.69735, 0.618246),
"format": 34359742465,
"index_count": 3156,
"index_data": PackedByteArray("[encoded data, 8416 characters]"),
"lods": [0.113628, PackedByteArray("[encoded data, 4096 characters]"), 0.149255, PackedByteArray("CQBHACsACQBIAEcASAAqAEcACQBJAEgASQAqAEgACQAiAEkARwAqAAgARwAIACsASQAjACoASQAiACMASgAJACsACQBKACIASgArACEAKgBLAAgATABLACoAIwBMACoATAAIAEsAIwAsAEwAIgAsACMATAAgAAgALAAgAEwAKwAIAE0AKwBNACEATQAIAE4AIABOAAgAIQBNA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APAA4ADgAPABsAEAAyABcAMgAOABcAEAAzABsAGwAzADQADgAbADQAEAAGADMAFwAGABAAMwAZADQABgAZADMANAAZAA4ABgAXADUAFwAOAAUANQAXAAUANQAWAAYABgAWABkANQAYABYAGAA1AAUAFgAYAAUAGQA2AA4ADgA2ADcABQAOADcAGQAaADYAGgA3ADYAGQA4ABoAFgA4ABkAGgABADcAOAABABoABQA3ABUAFQAWAAUAFgA5ADgAOAA5AAEAFQA6ABYAFgA6ADkAFQA3ADsANwABADsAFQA7AAAAFQAAADoAOwABADwAAQA5ADwAAAA7ACQAOwA8ACQAOQAmADwAJAA8ACYAOQACACYAOgACADkAAgA9ACYAJAAmAD0AJwA9AAIAOgAnAAIAJAA9AAoAPQAnAAoAAAA+ADoAAAAkAD8APgAAAD8AJQAkAAoAPwAkACUAAwA+AD8APgADADoAAwA/ACUAAwBAADoAOgBAACcAQAADACUAJwAoAAoAQABBACcAJwBBACgAJQAKAEIAQgAKACgAJQApAEAAJQBCAEMAJQBDACkAQgAoAEQAQwBCAEQAQQBFACgAKABFAEQAQAAMAEEAKQAMAEAADABFAEEAKQALAAwADAALAEUAKQBDAEYAQwBEAEYACwApAEYARgBEAEUARgBFAAsA"), 0.328765, PackedByteArray("FQAWABcAFgAYABcABgAXABgAGAAWAAYAFwAGABAAFwAOABUAEAAOABcAEAAGABkABgAWABkAFgAaABkAGQAaAA4ADgAaABUAGwAZAA4AEAAZABsAFgACABoAEAAcAA4ADgAdABsAHAAdAA4ABwAQABsABwAbAB0AEgAcABAABwASABAAHAARAB0ABwAdABEAEgARABwABwARABQAFAARABIAEgAHAB4AHgAHABQAHwAUABIAHwASAB4AHwAgABQAHgAUACAAIQAfAB4AIQAgAB8AIgAeACAAIQAeACIAIgAgACMAIQAjACAAIgAjACEAFQADABYAFgADAAIAFQAAAAMAFQAkAAAAAwAAACUAAAAkACUAFQABACQAGgABABUAGgACAAEAJAABACYAAQACACYAJAAmAAoAJQAkAAoAAgAKACYAAwAnAAIAJwAKAAIAAwAoACcAJwAoAAoAJQApAAMAJQAKACkAAwApACgAKQAKACgAKQAoAAsAKQALACgA"), 0.410425, PackedByteArray("AAACAAoAAwAKAAIACwAAAAoACwAKAAwAAwAMAAoACwAMAAMAAwAAAAsADQAAAAMADQADAAIAAAABAAIADQACAAEABQABAAAADQAFAAAADgABAAUADQABAA4ABQANAAYABgANAA4ABgAOAAUADwAGAA4AEAAOAAYAEAAPAA4AEQAGAA8AEAAGABEAEgAPABAAEgARAA8AEwAQABEAEwASABAAEgAUABEAEwARABQAEwAUABIACQAUABMACQATABQA"), 0.463547, PackedByteArray("AAABAAIAAAADAAIAAwAAAAIABAACAAEAAAACAAQABQABAAAABAABAAUABQAAAAYABgAAAAQABgAEAAUABwAGAAQABwAEAAYACAAGAAcABwAGAAgACQAIAAcACQAHAAgA")],
"name": "paper",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 528,
"vertex_data": PackedByteArray("[encoded data, 8448 characters]")
}]
blend_shape_mode = 0

[sub_resource type="ArrayMesh" id="ArrayMesh_jjaja"]
resource_name = "scroll2_Cube_001"
_surfaces = [{
"aabb": AABB(-0.653174, -0.755608, -0.491079, 1.3136, 1.69735, 0.618246),
"attribute_data": PackedByteArray("[encoded data, 5632 characters]"),
"format": 34359742487,
"index_count": 3156,
"index_data": PackedByteArray("[encoded data, 8416 characters]"),
"lods": [0.113628, PackedByteArray("[encoded data, 4096 characters]"), 0.149255, PackedByteArray("CQBHACwACQBIAEcASAArAEcACQBJAEgASQArAEgACQAkAEkARwArAAgARwAIACwASQAlACsASQAkACUASgAJACwACQBKACQASgAsACMAKwBLAAgATABLACsAJQBMACsATAAIAEsAJQAtAEwAJAAtACUATAAiAAgALQAiAEwALAAIAE0ALABNACMATQAIAE4AIgBOAAgAIwBNAC4ATQBOAC4AIgBPAE4ALgBOAE8ALQBQACIAJABQAC0AIgAWAE8AUAAWACIALgBPAC8AIwAuAFEAUQAuAC8ALwBPAFIAFgBSAE8ALw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APAB3AD0AdgA9AHcAPAA9ACYAAAA8ACYAdgB4AD0AJgA9AHgAdQB5AHYAdAB5AHUAdgB6AHgAeQB6AHYAJgB4ACgAegAoAHgAdAA7AHkAPwA7AHQAeQB7AHoAOwB7AHkAegA+ACgAJgAoAD4AegB8AD4AewB8AHoAfAAMAD4AfAB7AAwAJgA+AH0AfQA+AAwAfgAmAH0AOwB/AHsAPwCAADsAgAB/ADsAgAA/AEAAQAAmAH4APwAAAEAAAAAmAEAAgABAAAMAAwBAAH4AgAADAH8AAwB+AIEAfwADAIEAgQB+ACcAfgB9ACcAggB/AIEAgQAnAIIAfwCCAEEAfwBBAHsAJwB9AEMAggAnAEQAJwBDAEQAfQAMAEMAewApAAwAQQApAHsAQwAMAIMAKQCDAAwAQwCDACoAKQAqAIMAQwAqAEUARABDAEUAKQBCACoAQQBCACkAQgCEACoAhABFACoAQgALAIQAhAALAEUAQQAOAEIADgALAEIAhQAOAEEAggCFAEEAggBEAIUADgCGAAsAhQAKAA4ACgCGAA4AhQBEAAoACwCGAA0ACgANAIYAhwALAA0AhwBFAAsADQAKAEYARgCHAA0ACgBEAEYARgBFAIcARABFAEYA"), 0.300456, PackedByteArray("JAArACwAJAAlACsALAArAAgAJQAIACsAJAAtACUAJQAtAAgAJAAgAC0AIwAkACwAIwAgACQALAAIAC4ALAAuACMALQAiAAgALgAIACIALQAgACIAIwAuACEAIwAhACAALgAiAC8AIQAuAC8AIgAWAC8AIAAWACIAIQAvADAALwAWADAAIQAUACAAIAAxABYAFAAxACAAFgATADAAMQATABYAIQAwADIAFAAhADIAMAATAB8AMQAfABMAMgAwABEAMAAfABEAFAAyAAcAFAAHADEAMgARADMABwAyADMAHwAdABEAMQAdAB8ABwASADEABwAzABIAMQASAB0AMwARABAAEAARAB0AEgAzABkAMwAQABkAEgA0AB0AHQA0ADUAEAAdADUAEgAGADQAGQAGABIANAAbADUABgAbADQANQAbABAABgAZADYAGQAQAAUANgAZAAUANgAYAAYABgAYABsANgAaABgAGgA2AAUAGAAaAAUAGwA3ABAAEAA3ADgABQAQADgAGwAcADcAHAA4ADcAGwA5ABwAGAA5ABsAHAABADgAOQABABwABQA4ABcAFwAYAAUAGAA6ADkAOQA6AAEAFwA7ABgAGAA7ADoAFwA4ADwAOAABADwAFwA8AAAAFwAAADsAPAABAD0AAQA6AD0AAAA8ACYAPAA9ACYAOgAoAD0AJgA9ACgAOgACACgAOwACADoAAgA+ACgAJgAoAD4AKQA+AAIAOwApAAIAJgA+AAwAPgApAAwAAAA/ADsAAAAmAEAAPwAAAEAAJwAmAAwAQAAmACcAAwA/AEAAPwADADsAAwBAACcAAwBBADsAOwBBACkAQQADACcAKQAqAAwAQQBCACkAKQBCACoAJwAMAEMAQwAMACoAJwAKAEEAJwBDAEQAJwBEAAoAQwAqAEUARABDAEUAQgALACoAKgALAEUAQQAOAEIACgAOAEEADgALAEIACgANAA4ADgANAAsACgBEAEYARABFAEYADQAKAEYARgBFAAsARgALAA0A"), 0.328765, PackedByteArray("FwAYABkAGAAaABkABgAZABoAGgAYAAYAGQAGABIAGQAQABcAEgAQABkAEgAGABsABgAYABsAGAAcABsAGwAcABAAEAAcABcAHQAbABAAEgAbAB0AGAACABwAEgAeABAAEAAfAB0AHgAfABAABwASAB0ABwAdAB8AFAAeABIABwAUABIAHgATAB8ABwAfABMAFAATAB4ABwATABYAFgATABQAFAAHACAAIAAHABYAIQAWABQAIQAUACAAIQAiABYAIAAWACIAIwAhACAAIwAiACEAJAAgACIAIwAgACQAJAAiACUAIwAlACIAJAAlACMAFwADABgAGAADAAIAFwAAAAMAFwAmAAAAAwAAACcAAAAmACcAFwABACYAHAABABcAHAACAAEAJgABACgAAQACACgAJgAoAAwAJwAmAAwAAgAMACgAAwApAAIAKQAMAAIAAwAqACkAKQAqAAwAJwAKAAMAJwAMAAoAAwAKACoACgAMACoACgAqAA0ACgANACoA"), 0.410425, PackedByteArray("AAACAAwAAwAMAAIADQAAAAwADQAMAA4AAwAOAAwADQAOAAMAAwAAAA0ADwAAAAMADwADAAIAAAABAAIADwACAAEABQABAAAADwAFAAAAEAABAAUADwABABAABQAPAAYABgAPABAABgAQAAUAEQAGABAAEgAQAAYAEgARABAAEwAGABEAEgAGABMAFAARABIAFAATABEAFQASABMAFQAUABIAFAAWABMAFQATABYAFQAWABQACQAWABUACQAVABYA"), 0.463547, PackedByteArray("AAABAAIAAAADAAIAAwAAAAIABAACAAEAAAACAAQABQABAAAABAABAAUABQAAAAYABgAAAAQABgAEAAUABwAGAAQABwAEAAYACAAGAAcABwAGAAgACQAIAAcACQAHAAgA")],
"material": SubResource("StandardMaterial3D_wwylk"),
"name": "paper",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 528,
"vertex_data": PackedByteArray("[encoded data, 14080 characters]")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_476un")

[node name="Node3D" type="StaticBody3D" node_paths=PackedStringArray("outline_mesh", "card_ui")]
collision_layer = 16
script = ExtResource("1_rlle2")
outline_mesh = NodePath("Node3D/Cube2")
card_ui = NodePath("SubViewport/Node2D")
metadata/_custom_type_script = "uid://bj7oafusrrsk"

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(0.952656, -0.30405, 0, 0.30405, 0.952656, 0, 0, 0, 1, -0.0390961, -0.0919519, 0)
shape = SubResource("BoxShape3D_mfxja")

[node name="SubViewport" type="SubViewport" parent="."]
transparent_bg = true
size = Vector2i(352, 512)

[node name="Node2D" parent="SubViewport" instance=ExtResource("2_aiko0")]
position = Vector2(-56, 0)

[node name="Sprite3D" type="Sprite3D" parent="."]
transform = Transform3D(0.13, 0, 0, 0, 0.13, 0, 0, 0, 0.13, 0, 0, 0)
visible = false
billboard = 1
no_depth_test = true
fixed_size = true
texture = SubResource("ViewportTexture_11rd4")

[node name="Node3D" type="RayCast3D" parent="."]
target_position = Vector3(0, -2, 0)
script = ExtResource("3_jjaja")
float_height = 1.4
bounce_dist = 0.3
bounce_speed = 0.3
spin_speed = 0.4
curve = SubResource("Curve_ehsyn")
metadata/_custom_type_script = "uid://cl2mi4bnpatwk"

[node name="RemoteTransform3D" type="RemoteTransform3D" parent="Node3D"]
remote_path = NodePath("../../CollisionShape3D")
use_global_coordinates = false

[node name="Cube" type="MeshInstance3D" parent="Node3D"]
transform = Transform3D(-3.18561e-08, -0.255402, 0.795468, -1.01672e-08, 0.800231, 0.253882, -0.765, -3.68173e-16, -3.6499e-08, 0.1297, -0.115073, 0)
mesh = SubResource("ArrayMesh_jjaja")
skeleton = NodePath("")

[node name="Cube2" type="MeshInstance3D" parent="Node3D"]
transform = Transform3D(-3.18561e-08, -0.255402, 0.795468, -1.01672e-08, 0.800231, 0.253882, -0.765, -3.68173e-16, -3.6499e-08, 0.1297, -0.115073, 0)
mesh = SubResource("ArrayMesh_jjaja")
skeleton = NodePath("")
surface_material_override/0 = ExtResource("5_jjaja")
