TestMap for Enemy Nav
This commit is contained in:
32
Assets/Levels/monster_nav_test.tscn
Normal file
32
Assets/Levels/monster_nav_test.tscn
Normal file
@ -0,0 +1,32 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://csdj2r6comujy"]
|
||||
|
||||
[ext_resource type="Material" uid="uid://dqhejxrcijd1r" path="res://Assets/Materials/Floor_Tile.tres" id="1_4gn3h"]
|
||||
[ext_resource type="PackedScene" uid="uid://cadrciw8ywini" path="res://Assets/components/enemy.tscn" id="2_6yypg"]
|
||||
|
||||
[sub_resource type="NavigationMesh" id="NavigationMesh_4041h"]
|
||||
vertices = PackedVector3Array(-499.5, 1, -499.5, -499.5, 1, 499.5, 499.5, 1, 499.5, 499.5, 1, -499.5)
|
||||
polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1)]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_82gv2"]
|
||||
size = Vector3(1000, 1, 1000)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_jnejv"]
|
||||
material = ExtResource("1_4gn3h")
|
||||
size = Vector3(1000, 1, 1000)
|
||||
|
||||
[node name="Monster Nav Test" type="Node3D"]
|
||||
|
||||
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
|
||||
navigation_mesh = SubResource("NavigationMesh_4041h")
|
||||
|
||||
[node name="Floor" type="StaticBody3D" parent="NavigationRegion3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/Floor"]
|
||||
shape = SubResource("BoxShape3D_82gv2")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="NavigationRegion3D/Floor"]
|
||||
mesh = SubResource("BoxMesh_jnejv")
|
||||
|
||||
[node name="Enemy" parent="." instance=ExtResource("2_6yypg")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.66095, 22)
|
||||
SPEED = 15.0
|
||||
Reference in New Issue
Block a user