Mob.tscn 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. [gd_scene load_steps=7 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="BoxShape3D" id="BoxShape3D_vll1l"]
  7. size = Vector3(0.418579, 0.569824, 0.833984)
  8. [sub_resource type="Animation" id="2"]
  9. length = 1.2
  10. tracks/0/type = "value"
  11. tracks/0/imported = false
  12. tracks/0/enabled = true
  13. tracks/0/path = NodePath("Pivot/Character:position")
  14. tracks/0/interp = 1
  15. tracks/0/loop_wrap = true
  16. tracks/0/keys = {
  17. "times": PackedFloat32Array(0.22, 0.7, 1.18),
  18. "transitions": PackedFloat32Array(0.435275, 2.21914, 1),
  19. "update": 0,
  20. "values": [Vector3(0, 0.329753, 0), Vector3(0, 0.660351, 0), Vector3(0, 0.349734, 0)]
  21. }
  22. tracks/1/type = "value"
  23. tracks/1/imported = false
  24. tracks/1/enabled = true
  25. tracks/1/path = NodePath("Pivot/Character:rotation_degrees")
  26. tracks/1/interp = 1
  27. tracks/1/loop_wrap = true
  28. tracks/1/keys = {
  29. "times": PackedFloat32Array(0.1, 0.46, 1.18),
  30. "transitions": PackedFloat32Array(0.482968, 0.535887, 1),
  31. "update": 0,
  32. "values": [Vector3(-5.0326, 0, 0), Vector3(10, 0, 0), Vector3(-10, 0, 0)]
  33. }
  34. [sub_resource type="AnimationLibrary" id="AnimationLibrary_5n6vs"]
  35. _data = {
  36. "float": SubResource("2")
  37. }
  38. [node name="Mob" type="CharacterBody3D" groups=["mob"]]
  39. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0114588, 0)
  40. collision_layer = 2
  41. collision_mask = 2147483648
  42. script = ExtResource("1")
  43. [node name="Pivot" type="Node3D" parent="."]
  44. [node name="Character" parent="Pivot" instance=ExtResource("2")]
  45. transform = Transform3D(1, 0, 0, 0, 0.996145, 0.0877225, 0, -0.0877225, 0.996145, 0, 0.329753, 0)
  46. [node name="CollisionShape" type="CollisionShape3D" parent="."]
  47. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.52793, 0)
  48. shape = SubResource("1")
  49. [node name="CollisionShape2" type="CollisionShape3D" parent="."]
  50. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.861631, 0.783785, 0.180726)
  51. shape = SubResource("BoxShape3D_vll1l")
  52. [node name="CollisionShape3" type="CollisionShape3D" parent="."]
  53. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.889494, 0.783785, 0.180726)
  54. shape = SubResource("BoxShape3D_vll1l")
  55. [node name="CollisionShape4" type="CollisionShape3D" parent="."]
  56. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.889494, 0.783785, 1.43697)
  57. shape = SubResource("BoxShape3D_vll1l")
  58. [node name="CollisionShape5" type="CollisionShape3D" parent="."]
  59. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.887008, 0.783785, 1.43697)
  60. shape = SubResource("BoxShape3D_vll1l")
  61. [node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier3D" parent="."]
  62. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.062134, 0.331645)
  63. aabb = AABB(-1.19986, 0.251327, -1.57098, 2.41047, 1.09305, 3.17223)
  64. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  65. libraries = {
  66. "": SubResource("AnimationLibrary_5n6vs")
  67. }
  68. autoplay = "float"
  69. [connection signal="screen_exited" from="VisibleOnScreenNotifier3D" to="." method="_on_visible_on_screen_notifier_screen_exited"]