32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://Scripts/Player.gd" type="Script" id=1]
|
|
[ext_resource path="res://Models/cone-collision.tres" type="Shape" id=2]
|
|
|
|
[sub_resource type="CapsuleShape" id=1]
|
|
radius = 0.15
|
|
height = 0.6
|
|
|
|
[node name="Player" type="RigidBody"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 0.519, 0, 0, 0, 1, 0, 0, -0.034 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="GunContainer" type="Spatial" parent="."]
|
|
transform = Transform( 2.65431e-15, 1.62921e-08, 0.1, 0.1, -1.62921e-08, 0, 1.62921e-08, 0.1, -1.62921e-08, 0, -0.022, 0.383 )
|
|
|
|
[node name="RayCast" type="RayCast" parent="GunContainer"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.769, 0 )
|
|
enabled = true
|
|
cast_to = Vector3( 0, 500, 0 )
|
|
|
|
[node name="Cone" type="Area" parent="GunContainer"]
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="GunContainer/Cone"]
|
|
transform = Transform( 25, 0, 1.81899e-12, 4.54747e-13, -4.07302e-06, -100, 5.42101e-20, 25, -1.62921e-05, -1.49012e-08, 1000, -1.33014e-11 )
|
|
shape = ExtResource( 2 )
|
|
[connection signal="body_entered" from="GunContainer/Cone" to="." method="_on_player_enter_firing_arc"]
|
|
[connection signal="body_exited" from="GunContainer/Cone" to="." method="_on_player_exit_firing_arc"]
|