Mob.tscn 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. loop_mode = 1
  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_5n6vs"]
  36. _data = {
  37. "float": SubResource("2")
  38. }
  39. [node name="Mob" type="CharacterBody3D" groups=["mob"]]
  40. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0114588, 0)
  41. collision_layer = 2
  42. collision_mask = 2147483648
  43. script = ExtResource("1")
  44. [node name="Pivot" type="Node3D" parent="."]
  45. [node name="Character" parent="Pivot" instance=ExtResource("2")]
  46. transform = Transform3D(1, 0, 0, 0, 0.996145, 0.0877225, 0, -0.0877225, 0.996145, 0, 0.329753, 0)
  47. [node name="CollisionShape" type="CollisionShape3D" parent="."]
  48. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.52793, 0)
  49. shape = SubResource("1")
  50. [node name="CollisionShape2" type="CollisionShape3D" parent="."]
  51. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.861631, 0.783785, 0.180726)
  52. shape = SubResource("BoxShape3D_vll1l")
  53. [node name="CollisionShape3" type="CollisionShape3D" parent="."]
  54. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.889494, 0.783785, 0.180726)
  55. shape = SubResource("BoxShape3D_vll1l")
  56. [node name="CollisionShape4" type="CollisionShape3D" parent="."]
  57. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.889494, 0.783785, 1.43697)
  58. shape = SubResource("BoxShape3D_vll1l")
  59. [node name="CollisionShape5" type="CollisionShape3D" parent="."]
  60. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.887008, 0.783785, 1.43697)
  61. shape = SubResource("BoxShape3D_vll1l")
  62. [node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier3D" parent="."]
  63. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.062134, 0.331645)
  64. aabb = AABB(-1.19986, 0.251327, -1.57098, 2.41047, 1.09305, 3.17223)
  65. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  66. libraries = {
  67. "": SubResource("AnimationLibrary_5n6vs")
  68. }
  69. autoplay = "float"
  70. [connection signal="screen_exited" from="VisibleOnScreenNotifier3D" to="." method="_on_visible_on_screen_notifier_screen_exited"]