Player.tscn 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. [gd_scene load_steps=7 format=3 uid="uid://dp478jyugrn7o"]
  2. [ext_resource type="Script" path="res://Player.gd" id="1"]
  3. [ext_resource type="PackedScene" uid="uid://d0ypm0v45pwdv" path="res://art/player.glb" id="2"]
  4. [sub_resource type="SphereShape3D" id="1"]
  5. radius = 0.792278
  6. [sub_resource type="CylinderShape3D" id="2"]
  7. height = 0.1438
  8. radius = 0.907607
  9. [sub_resource type="Animation" id="3"]
  10. length = 1.2
  11. tracks/0/type = "value"
  12. tracks/0/imported = false
  13. tracks/0/enabled = true
  14. tracks/0/path = NodePath("Pivot/Character:position")
  15. tracks/0/interp = 1
  16. tracks/0/loop_wrap = true
  17. tracks/0/keys = {
  18. "times": PackedFloat32Array(0.22, 0.7, 1.18),
  19. "transitions": PackedFloat32Array(0.435275, 2.21914, 1),
  20. "update": 0,
  21. "values": [Vector3(0, 0.329753, 0), Vector3(0, 0.660351, 0), Vector3(0, 0.349734, 0)]
  22. }
  23. tracks/1/type = "value"
  24. tracks/1/imported = false
  25. tracks/1/enabled = true
  26. tracks/1/path = NodePath("Pivot/Character:rotation_degrees")
  27. tracks/1/interp = 1
  28. tracks/1/loop_wrap = true
  29. tracks/1/keys = {
  30. "times": PackedFloat32Array(0.1, 0.46, 1.18),
  31. "transitions": PackedFloat32Array(0.482968, 0.535887, 1),
  32. "update": 0,
  33. "values": [Vector3(-5.0326, 0, 0), Vector3(10, 0, 0), Vector3(-10, 0, 0)]
  34. }
  35. [sub_resource type="AnimationLibrary" id="AnimationLibrary_aq6tr"]
  36. _data = {
  37. "float": SubResource("3")
  38. }
  39. [node name="Player" type="CharacterBody3D"]
  40. collision_mask = 2147483654
  41. script = ExtResource("1")
  42. [node name="Pivot" type="Node3D" parent="."]
  43. [node name="Character" parent="Pivot" instance=ExtResource("2")]
  44. transform = Transform3D(1, 0, 0, 0, 0.996145, 0.0877225, 0, -0.0877225, 0.996145, 0, 0.329753, 0)
  45. [node name="CollisionShape" type="CollisionShape3D" parent="."]
  46. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.771765, 0)
  47. shape = SubResource("1")
  48. [node name="MobDetector" type="Area3D" parent="."]
  49. collision_layer = 0
  50. collision_mask = 2
  51. monitorable = false
  52. [node name="CollisionShape" type="CollisionShape3D" parent="MobDetector"]
  53. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.06491, 0)
  54. shape = SubResource("2")
  55. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  56. autoplay = "float"
  57. libraries = {
  58. "": SubResource("AnimationLibrary_aq6tr")
  59. }
  60. [connection signal="body_entered" from="MobDetector" to="." method="_on_MobDetector_body_entered"]