separate collision layers
This commit is contained in:
parent
a71fa179bb
commit
6e671a97dc
@ -82,3 +82,10 @@ toggle_camera_navigation={
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194333,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
[layer_names]
|
||||
|
||||
3d_physics/layer_1="default"
|
||||
3d_physics/layer_2="units"
|
||||
3d_physics/layer_3="controlled_units"
|
||||
3d_physics/layer_9="items"
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
radius = 0.213583
|
||||
|
||||
[node name="Honeydew" type="CharacterBody3D"]
|
||||
collision_layer = 256
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_6fg3d")
|
||||
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ruupa"]
|
||||
|
||||
[node name="Anthill" type="CharacterBody3D"]
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_8k02d")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
|
||||
@ -32,6 +32,7 @@ transitions = ["Start", "locomotion", SubResource("AnimationNodeStateMachineTran
|
||||
radius = 0.25
|
||||
|
||||
[node name="AntGatherer" instance=ExtResource("1_asokb")]
|
||||
collision_layer = 4
|
||||
collision_mask = 0
|
||||
script = ExtResource("2_vcqni")
|
||||
|
||||
|
||||
@ -32,6 +32,7 @@ transitions = ["Start", "locomotion", SubResource("AnimationNodeStateMachineTran
|
||||
radius = 0.25
|
||||
|
||||
[node name="AntNitwit" instance=ExtResource("1_1u65s")]
|
||||
collision_layer = 4
|
||||
collision_mask = 0
|
||||
script = ExtResource("2_f1bdv")
|
||||
|
||||
|
||||
@ -31,6 +31,8 @@ transitions = ["Start", "locomotion", SubResource("AnimationNodeStateMachineTran
|
||||
radius = 0.25
|
||||
|
||||
[node name="Aphid" instance=ExtResource("1_cchbm")]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
script = ExtResource("2_ohs5l")
|
||||
|
||||
[node name="aphid" parent="." index="0"]
|
||||
|
||||
@ -33,6 +33,8 @@ func _ready() -> void:
|
||||
frustrum_area.body_entered.connect(_on_frustrum_area_body_entered)
|
||||
frustrum_area.body_exited.connect(_on_frustrum_area_body_exited)
|
||||
frustrum_area.input_ray_pickable = false
|
||||
frustrum_area.set_collision_mask_value(1, false)
|
||||
frustrum_area.set_collision_mask_value(3, true)
|
||||
rect_panel.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
rect_panel.add_theme_stylebox_override("panel", rect_style)
|
||||
add_child(rect_panel)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user