Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
skooter500 committed Jun 28, 2023
1 parent f3de080 commit 3897e08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
3 changes: 0 additions & 3 deletions GodotBoids/Hybrid1.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ axis = 1

[node name="Constrain" type="Node" parent="creature/boid"]
script = ExtResource( 13 )
weight = 0.1
center_path = NodePath("../../../Center")

[node name="NoiseWander" type="Node" parent="creature/boid"]
Expand All @@ -321,8 +320,6 @@ distance = 100
[node name="PathFollow" type="Node" parent="creature/boid"]
script = ExtResource( 14 )
weight = 3.0
draw_gizmos = false
enabled = false

[node name="Seek" type="Node" parent="creature/boid"]
script = ExtResource( 17 )
Expand Down
17 changes: 11 additions & 6 deletions GodotBoids/take_control.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=31 format=2]
[gd_scene load_steps=32 format=2]

[ext_resource path="res://root.gd" type="Script" id=1]
[ext_resource path="res://FPController.gd" type="Script" id=2]
Expand All @@ -18,10 +18,11 @@
[ext_resource path="res://NoiseWander.gd" type="Script" id=16]
[ext_resource path="res://Tank Material.tres" type="Material" id=17]
[ext_resource path="res://Dodecahedron.tscn" type="PackedScene" id=18]
[ext_resource path="res://CameraController.gd" type="Script" id=19]

[sub_resource type="SphereShape" id=13]
[sub_resource type="SphereShape" id=23]

[sub_resource type="Environment" id=6]
[sub_resource type="Environment" id=24]
background_mode = 1
ambient_light_color = Color( 0.392157, 0.392157, 0.392157, 1 )
ambient_light_energy = 2.0
Expand Down Expand Up @@ -60,14 +61,19 @@ script = ExtResource( 2 )
speed = 10.0

[node name="CollisionShape" type="CollisionShape" parent="Player"]
shape = SubResource( 13 )
shape = SubResource( 23 )

[node name="Camera" type="Camera" parent="Player"]
environment = SubResource( 6 )
environment = SubResource( 24 )
far = 10000.0

[node name="Listener" type="Listener" parent="Player/Camera"]

[node name="Camera Controller" type="Node" parent="Player/Camera"]
script = ExtResource( 19 )
boid_player_path = NodePath("../../../camera follower")
boid_path = NodePath("../../../creature/boid")

[node name="camera follower" type="KinematicBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.973738, -15.0557, 41.7624 )
script = ExtResource( 3 )
Expand Down Expand Up @@ -103,7 +109,6 @@ obstacle_scene = ExtResource( 11 )
radius = 30

[node name="SceneSwitcher" parent="." instance=ExtResource( 10 )]
scenes = [ "StateMachineBots.tscn", "Seek.tscn", "Arrive.tscn", "FollowPath.tscn", "Wander.tscn", "PlayerSteering.tscn", "Hybrid1.tscn", "offset_pursue.tscn", "School With Avoidance.tscn", "take_control.tscn" ]

[node name="creature" type="Spatial" parent="."]

Expand Down

0 comments on commit 3897e08

Please sign in to comment.