-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.tscn
More file actions
62 lines (49 loc) · 1.7 KB
/
Player.tscn
File metadata and controls
62 lines (49 loc) · 1.7 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[sub_resource type="CapsuleShape" id=1]
radius = 0.5
height = 1.8
[sub_resource type="SpatialMaterial" id=2]
flags_unshaded = true
flags_no_depth_test = true
flags_fixed_size = true
flags_do_not_receive_shadows = true
flags_disable_ambient_light = true
params_blend_mode = 2
params_line_width = 5.5
params_point_size = 5.5
[sub_resource type="GDScript" id=3]
script/source = "extends ImmediateGeometry
func _ready():
draw_empty_circle()
func draw_empty_circle():
var UP = Vector3(0,0.0025,0)
clear()
begin(Mesh.PRIMITIVE_LINE_LOOP)
for i in range(10):
add_vertex(UP.rotated(Vector3.FORWARD,i*TAU/10)*4)
end()
"
[node name="Player" type="KinematicBody"]
script = ExtResource( 1 )
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 1.4, 0 )
shape = SubResource( 1 )
[node name="Pivot" type="Position3D" parent="."]
[node name="Camera" type="Camera" parent="Pivot"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.29421, 0 )
current = true
size = 0.1
frustum_offset = Vector2( 0.544, 0 )
[node name="ImmediateGeometry" type="ImmediateGeometry" parent="Pivot/Camera"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.274196 )
material_override = SubResource( 2 )
cast_shadow = 0
script = SubResource( 3 )
[node name="SpotLight" type="SpotLight" parent="Pivot/Camera"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0106344, 0 )
spot_range = 10.0
spot_attenuation = 3.73213
spot_angle_attenuation = 3.36358
[node name="PuzzleCamera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.29554, 0 )