2019-11-19 12:08:11 +01:00
|
|
|
[gd_scene load_steps=4 format=2]
|
2019-11-02 16:04:03 +01:00
|
|
|
|
2019-11-02 19:53:07 +01:00
|
|
|
[ext_resource path="res://Characters/Player/Player.gd" type="Script" id=1]
|
2019-11-19 12:08:11 +01:00
|
|
|
[ext_resource path="res://Characters/Player/UI/UI.tscn" type="PackedScene" id=2]
|
2019-11-02 16:04:03 +01:00
|
|
|
|
|
|
|
[sub_resource type="CylinderShape" id=1]
|
|
|
|
|
2019-11-11 10:20:23 +01:00
|
|
|
[node name="Player" type="KinematicBody" groups=[
|
|
|
|
"Player",
|
|
|
|
]]
|
|
|
|
collision_layer = 5
|
|
|
|
collision_mask = 5
|
2019-11-02 16:04:03 +01:00
|
|
|
script = ExtResource( 1 )
|
2019-11-02 19:53:07 +01:00
|
|
|
body_nodepath = NodePath("Body")
|
2019-11-18 16:39:26 +01:00
|
|
|
lookingAt_nodepath = NodePath("Body/Camera/LookingAt")
|
2019-11-02 16:04:03 +01:00
|
|
|
|
2019-11-02 19:02:16 +01:00
|
|
|
[node name="Body" type="Spatial" parent="."]
|
|
|
|
|
|
|
|
[node name="Camera" type="Camera" parent="Body"]
|
2019-11-18 18:25:57 +01:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
2019-11-02 19:02:16 +01:00
|
|
|
current = true
|
|
|
|
|
2019-11-18 16:15:20 +01:00
|
|
|
[node name="LookingAt" type="RayCast" parent="Body/Camera"]
|
2019-11-18 18:25:57 +01:00
|
|
|
transform = Transform( -1, 0, -8.74228e-008, 0, 1, 0, 8.74228e-008, 0, -1, 0, 0, 0 )
|
2019-11-18 16:15:20 +01:00
|
|
|
enabled = true
|
|
|
|
cast_to = Vector3( 0, 0, 2 )
|
|
|
|
|
2019-11-02 16:04:03 +01:00
|
|
|
[node name="Collider" type="CollisionShape" parent="."]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
|
|
|
shape = SubResource( 1 )
|
2019-11-19 12:08:11 +01:00
|
|
|
|
|
|
|
[node name="HUD" parent="." instance=ExtResource( 2 )]
|