forked from 0xspig/3dCharacterController
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlayer.tscn
36 lines (28 loc) · 1 KB
/
Player.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://Crosshair.png" type="Texture" id=2]
[sub_resource type="CapsuleShape" id=1]
radius = 0.5
[node name="Player" type="KinematicBody"]
script = ExtResource( 1 )
move_speed = 8
friction = 1.34
[node name="Collider" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.25, 0 )
shape = SubResource( 1 )
[node name="Camera" type="Camera" parent="Collider"]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, -2.11571e-08, 0.484018 )
current = true
fov = 90.0
[node name="RayCast" type="RayCast" parent="Collider/Camera"]
enabled = true
cast_to = Vector3( 0, 0, -500 )
[node name="HUD" type="CenterContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="Crosshair_Tex" type="TextureRect" parent="HUD"]
margin_left = 476.0
margin_top = 264.0
margin_right = 548.0
margin_bottom = 336.0
texture = ExtResource( 2 )