Now About Social Code
summaryrefslogtreecommitdiff
path: root/prefabs/enemy.tscn
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-26 18:50:00 +0100
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-26 18:50:00 +0100
commit9efec0230fff03e97047cacc89e28eb2d096cab4 (patch)
treed662be5d2c57cd82a0b85b79b16c9e7f5cd3d051 /prefabs/enemy.tscn
parent0127a8ec6c66a9abaeb97f0b02b70d5d91a835cc (diff)
enemy: Add alien model with basic animations
Diffstat (limited to 'prefabs/enemy.tscn')
-rw-r--r--prefabs/enemy.tscn20
1 files changed, 8 insertions, 12 deletions
diff --git a/prefabs/enemy.tscn b/prefabs/enemy.tscn
index 415b9b8..7b68fca 100644
--- a/prefabs/enemy.tscn
+++ b/prefabs/enemy.tscn
@@ -1,12 +1,11 @@
-[gd_scene load_steps=6 format=3 uid="uid://cuad3khwmhnsa"]
+[gd_scene load_steps=5 format=3 uid="uid://cuad3khwmhnsa"]
[ext_resource type="Script" path="res://scripts/enemy.gd" id="1_aut2k"]
+[ext_resource type="PackedScene" uid="uid://dh6ndi4n4fjmi" path="res://models/alien.blend" id="2_kcx85"]
-[sub_resource type="CapsuleMesh" id="CapsuleMesh_xh601"]
-
-[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7r0x4"]
-
-[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_s5qw4"]
+[sub_resource type="CylinderShape3D" id="CylinderShape3D_1yvgl"]
+height = 1.59164
+radius = 0.707682
[sub_resource type="BoxShape3D" id="BoxShape3D_cyd43"]
size = Vector3(20, 2, 20)
@@ -17,14 +16,11 @@ motion_mode = 1
wall_min_slide_angle = 0.0872665
script = ExtResource("1_aut2k")
-[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
-transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
-mesh = SubResource("CapsuleMesh_xh601")
-surface_material_override/0 = SubResource("StandardMaterial3D_7r0x4")
+[node name="alien" parent="." instance=ExtResource("2_kcx85")]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
-transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
-shape = SubResource("CapsuleShape3D_s5qw4")
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0445195, 0.797944, 0.0425379)
+shape = SubResource("CylinderShape3D_1yvgl")
[node name="HitTimer" type="Timer" parent="."]
wait_time = 0.2