From e7fb9bacf3ebb5209f90f412757c35276af51e85 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Tue, 11 Oct 2022 00:15:48 -0400 Subject: ai cannon-manning state machine --- godot/scenes/machines/Cannon.tscn | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'godot/scenes/machines') diff --git a/godot/scenes/machines/Cannon.tscn b/godot/scenes/machines/Cannon.tscn index 9bcd95d..182ff8a 100644 --- a/godot/scenes/machines/Cannon.tscn +++ b/godot/scenes/machines/Cannon.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=10 format=2] +[gd_scene load_steps=9 format=2] [ext_resource path="res://scripts/machines/Cannon.gd" type="Script" id=1] [ext_resource path="res://sounds/explode.wav" type="AudioStream" id=2] @@ -6,9 +6,6 @@ [ext_resource path="res://meshes/cannon_base.tres" type="ArrayMesh" id=4] [ext_resource path="res://theming/FreeMono.otf" type="DynamicFontData" id=5] -[sub_resource type="PhysicsMaterial" id=8] -rough = true - [sub_resource type="BoxShape" id=1] extents = Vector3( 1, 0.5, 0.5 ) @@ -23,7 +20,7 @@ font_data = ExtResource( 5 ) [node name="Cannon" type="RigidBody"] mass = 3180.0 -physics_material_override = SubResource( 8 ) +linear_damp = 0.0 script = ExtResource( 1 ) [node name="CollisionShape" type="CollisionShape" parent="."] @@ -69,3 +66,9 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.748, 1.143, 0 ) billboard = 2 text = "!" font = SubResource( 9 ) + +[node name="NavigationObstacle" type="NavigationObstacle" parent="."] +estimate_radius = false + +[node name="AINavPoint" type="Spatial" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.392, 0, 0 ) -- cgit v1.2.3