Mob.tscn 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [gd_scene load_steps=6 format=3 uid="uid://ha0ar5s2c3m4"]
  2. [ext_resource type="Script" path="res://Mob.gd" id="1"]
  3. [ext_resource type="PackedScene" uid="uid://bicorb7we351t" path="res://art/mob.glb" id="2"]
  4. [sub_resource type="BoxShape3D" id="1"]
  5. size = Vector3(1.35822, 1.08835, 2.20058)
  6. [sub_resource type="Animation" id="2"]
  7. length = 1.2
  8. tracks/0/type = "value"
  9. tracks/0/imported = false
  10. tracks/0/enabled = true
  11. tracks/0/path = NodePath("Pivot/Character:position")
  12. tracks/0/interp = 1
  13. tracks/0/loop_wrap = true
  14. tracks/0/keys = {
  15. "times": PackedFloat32Array(0.22, 0.7, 1.18),
  16. "transitions": PackedFloat32Array(0.435275, 2.21914, 1),
  17. "update": 0,
  18. "values": [Vector3(0, 0.329753, 0), Vector3(0, 0.660351, 0), Vector3(0, 0.349734, 0)]
  19. }
  20. tracks/1/type = "value"
  21. tracks/1/imported = false
  22. tracks/1/enabled = true
  23. tracks/1/path = NodePath("Pivot/Character:rotation_degrees")
  24. tracks/1/interp = 1
  25. tracks/1/loop_wrap = true
  26. tracks/1/keys = {
  27. "times": PackedFloat32Array(0.1, 0.46, 1.18),
  28. "transitions": PackedFloat32Array(0.482968, 0.535887, 1),
  29. "update": 0,
  30. "values": [Vector3(-5.0326, 0, 0), Vector3(10, 0, 0), Vector3(-10, 0, 0)]
  31. }
  32. [sub_resource type="AnimationLibrary" id="AnimationLibrary_5n6vs"]
  33. _data = {
  34. "float": SubResource("2")
  35. }
  36. [node name="Mob" type="CharacterBody3D" groups=["mob"]]
  37. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0114588, 0)
  38. collision_layer = 2
  39. collision_mask = 2147483648
  40. script = ExtResource("1")
  41. [node name="Pivot" type="Node3D" parent="."]
  42. [node name="Character" parent="Pivot" instance=ExtResource("2")]
  43. transform = Transform3D(1, 0, 0, 0, 0.996145, 0.0877225, 0, -0.0877225, 0.996145, 0, 0.329753, 0)
  44. [node name="CollisionShape" type="CollisionShape3D" parent="."]
  45. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.52793, 0)
  46. shape = SubResource("1")
  47. [node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier3D" parent="."]
  48. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.062134, 0.331645)
  49. aabb = AABB(-1.19986, 0.251327, -1.57098, 2.41047, 1.09305, 3.17223)
  50. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  51. autoplay = "float"
  52. libraries = {
  53. "": SubResource("AnimationLibrary_5n6vs")
  54. }
  55. [connection signal="screen_exited" from="VisibleOnScreenNotifier3D" to="." method="_on_visible_on_screen_notifier_screen_exited"]