86 lines
3.4 KiB
Plaintext
86 lines
3.4 KiB
Plaintext
[gd_scene format=3 uid="uid://dbkgl7lygalkx"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://ben6bv5gilclx" path="res://assets/blender/character.glb" id="1_agfs1"]
|
|
[ext_resource type="Script" uid="uid://fknk7s075mxu" path="res://scripts/character.gd" id="1_lrhn5"]
|
|
[ext_resource type="Shader" uid="uid://cnuead630a8a6" path="res://assets/shader/skin_chooser.gdshader" id="3_dp8ca"]
|
|
[ext_resource type="Texture2DArray" uid="uid://qpcfjg7ajf8u" path="res://assets/img/textures/faces/faces.tres" id="4_0lw5n"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ka232"]
|
|
radius = 0.5551758
|
|
height = 3.8041992
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_dp8ca"]
|
|
render_priority = 0
|
|
shader = ExtResource("3_dp8ca")
|
|
shader_parameter/skins = ExtResource("4_0lw5n")
|
|
|
|
[sub_resource type="ViewportTexture" id="ViewportTexture_ka232"]
|
|
viewport_path = NodePath("Sprite3D/SubViewport")
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_ka232"]
|
|
radius = 2.8869576
|
|
|
|
[node name="character" type="CharacterBody3D" unique_id=1499167018]
|
|
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0)
|
|
script = ExtResource("1_lrhn5")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1826042797]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.9161952, 0)
|
|
shape = SubResource("CapsuleShape3D_ka232")
|
|
|
|
[node name="character" parent="." unique_id=1146050886 instance=ExtResource("1_agfs1")]
|
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0, 0)
|
|
|
|
[node name="characterMedium" parent="character/Root/Skeleton3D" parent_id_path=PackedInt32Array(1146050886, 131230640) index="0" unique_id=14286276]
|
|
surface_material_override/0 = SubResource("ShaderMaterial_dp8ca")
|
|
|
|
[node name="AnimationPlayer" parent="character" index="1" unique_id=1653757337]
|
|
speed_scale = 0.5
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="." unique_id=1464118033]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8881962, 3.1698613, -0.13761836)
|
|
billboard = 1
|
|
texture = SubResource("ViewportTexture_ka232")
|
|
|
|
[node name="SubViewport" type="SubViewport" parent="Sprite3D" unique_id=748191708]
|
|
transparent_bg = true
|
|
size = Vector2i(600, 300)
|
|
|
|
[node name="Label" type="Label" parent="Sprite3D/SubViewport" unique_id=651966639]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -121.0
|
|
offset_top = -43.5
|
|
offset_right = 121.0
|
|
offset_bottom = 43.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 4
|
|
theme_override_font_sizes/font_size = 22
|
|
text = "Salut !
|
|
Comment Ca va?"
|
|
|
|
[node name="Area3D" type="Area3D" parent="." unique_id=614972777]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D" unique_id=1145642422]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.163976, 1.049875)
|
|
shape = SubResource("SphereShape3D_ka232")
|
|
|
|
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="." unique_id=1094148667]
|
|
path_height_offset = 0.5
|
|
avoidance_enabled = true
|
|
radius = 1.0
|
|
neighbor_distance = 100.0
|
|
|
|
[node name="Timer" type="Timer" parent="." unique_id=893835033]
|
|
|
|
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|
|
[connection signal="body_exited" from="Area3D" to="." method="_on_area_3d_body_exited"]
|
|
[connection signal="navigation_finished" from="NavigationAgent3D" to="." method="_on_navigation_agent_3d_navigation_finished"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
|
|
|
[editable path="character"]
|