3D tutorial with brownian-ish motion enemies
This commit is contained in:
27
3d-tutorial/3d_squash_the_creeps_starter/mob.tscn
Normal file
27
3d-tutorial/3d_squash_the_creeps_starter/mob.tscn
Normal file
@@ -0,0 +1,27 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://defdm2qdva75q"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bicorb7we351t" path="res://art/mob.glb" id="1_dy6sc"]
|
||||
[ext_resource type="Script" uid="uid://c5wp01kn08qxe" path="res://mob.gd" id="1_nokgg"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_nokgg"]
|
||||
size = Vector3(1.9155884, 0.7798462, 1.6226807)
|
||||
|
||||
[node name="Mob" type="CharacterBody3D" groups=["mob"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.22412324, 0)
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_nokgg")
|
||||
|
||||
[node name="Pivot" type="Node3D" parent="."]
|
||||
|
||||
[node name="Character" parent="Pivot" instance=ExtResource("1_dy6sc")]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.020843506, 0.4449278, 0.06854248)
|
||||
shape = SubResource("BoxShape3D_nokgg")
|
||||
|
||||
[node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.007541895, 0.34551716, 0.3237151)
|
||||
aabb = AABB(-1.1488216, -0.65816104, -1.7166415, 2.2976432, 1.2323378, 3.433283)
|
||||
|
||||
[connection signal="screen_exited" from="VisibleOnScreenNotifier3D" to="." method="_on_visible_on_screen_notifier_3d_screen_exited"]
|
||||
Reference in New Issue
Block a user