gravity affected agents
This commit is contained in:
parent
eec69524ee
commit
1cd5123a08
3 changed files with 22 additions and 22 deletions
|
@ -11,10 +11,6 @@
|
|||
[ext_resource type="Texture2D" uid="uid://c57drlhnuicu5" path="res://base/assets/sprites/test_enemy/0007.png" id="9_83myg"]
|
||||
[ext_resource type="Script" uid="uid://biqn05eyrhdya" path="res://base/scripts/enemies/floor_mover.gd" id="10_rvsun"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_hmq60"]
|
||||
height = 1.52902
|
||||
radius = 0.543945
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_rvsun"]
|
||||
resource_name = "temp"
|
||||
script/source = "extends Node
|
||||
|
@ -25,13 +21,17 @@ func _process(delta: float) -> void:
|
|||
$\"../../NavigationAgent3D\".target_position = get_tree().current_scene.get_node(\"%Player\").global_position
|
||||
"
|
||||
|
||||
[node name="TestEnemy" type="Node3D" groups=["enemy"]]
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_rvsun"]
|
||||
height = 1.5095
|
||||
|
||||
[node name="TestEnemy" type="CharacterBody3D" groups=["enemy"]]
|
||||
collision_layer = 4
|
||||
|
||||
[node name="RotationalSprite" type="Sprite3D" parent="."]
|
||||
transform = Transform3D(3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0.97973, 0)
|
||||
billboard = 2
|
||||
texture_filter = 0
|
||||
texture = ExtResource("1_7qny8")
|
||||
texture = ExtResource("8_snoby")
|
||||
script = ExtResource("2_hmq60")
|
||||
rotations = Dictionary[float, Texture2D]({
|
||||
0.0: ExtResource("6_d1vpv"),
|
||||
|
@ -45,23 +45,18 @@ rotations = Dictionary[float, Texture2D]({
|
|||
6.28319: ExtResource("6_d1vpv")
|
||||
})
|
||||
|
||||
[node name="Hitbox" type="Area3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.181836, 0)
|
||||
collision_layer = 4
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Hitbox"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.584702, 0)
|
||||
shape = SubResource("CylinderShape3D_hmq60")
|
||||
|
||||
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
|
||||
debug_enabled = true
|
||||
|
||||
[node name="Mover" type="Node" parent="." node_paths=PackedStringArray("navigation_agent", "move_target")]
|
||||
script = ExtResource("10_rvsun")
|
||||
navigation_agent = NodePath("../NavigationAgent3D")
|
||||
move_target = NodePath("..")
|
||||
max_speed = 2.0
|
||||
rotation_speed = 0.0872665
|
||||
|
||||
[node name="Node" type="Node" parent="Mover"]
|
||||
script = SubResource("GDScript_rvsun")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.766538, 0)
|
||||
shape = SubResource("CapsuleShape3D_rvsun")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue