SpaceServer/Scenes/Player.tscn

32 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-07-04 18:21:40 +00:00
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Scripts/Player.gd" type="Script" id=1]
2021-07-04 18:21:40 +00:00
[ext_resource path="res://Models/cone-collision.tres" type="Shape" id=2]
2020-08-16 12:11:59 +00:00
[sub_resource type="CapsuleShape" id=1]
radius = 0.15
height = 0.6
2020-08-16 12:11:59 +00:00
[node name="Player" type="RigidBody"]
script = ExtResource( 1 )
2020-08-16 12:11:59 +00:00
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 0.519, 0, 0, 0, 1, 0, 0, -0.034 )
2020-08-16 12:11:59 +00:00
shape = SubResource( 1 )
2020-08-29 16:33:30 +00:00
[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 )
2020-08-29 16:33:30 +00:00
[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 )
2021-07-04 18:21:40 +00:00
[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"]