2018-07-19 15:36:56 +02:00
|
|
|
[gd_scene load_steps=6 format=2]
|
2018-07-19 15:36:51 +02:00
|
|
|
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
|
|
|
|
2018-07-19 15:36:56 +02:00
|
|
|
[sub_resource type="CapsuleShape" id=1]
|
|
|
|
|
|
|
|
radius = 1.0
|
|
|
|
height = 1.0
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleMesh" id=2]
|
2018-07-19 15:36:51 +02:00
|
|
|
|
|
|
|
radius = 1.0
|
|
|
|
mid_height = 1.0
|
|
|
|
radial_segments = 64
|
|
|
|
rings = 8
|
|
|
|
|
2018-07-19 15:36:56 +02:00
|
|
|
[sub_resource type="Shader" id=3]
|
2018-07-19 15:36:51 +02:00
|
|
|
|
|
|
|
code = "shader_type spatial;
|
|
|
|
|
|
|
|
void fragment() {
|
|
|
|
ALBEDO = vec3(1.0, 0.0, 0.0);
|
|
|
|
}"
|
|
|
|
|
2018-07-19 15:36:56 +02:00
|
|
|
[sub_resource type="ShaderMaterial" id=4]
|
2018-07-19 15:36:51 +02:00
|
|
|
|
|
|
|
render_priority = 0
|
2018-07-19 15:36:56 +02:00
|
|
|
shader = SubResource( 3 )
|
2018-07-19 15:36:51 +02:00
|
|
|
|
2018-07-19 15:37:14 +02:00
|
|
|
[node name="Player" type="KinematicBody"]
|
2018-07-19 15:36:51 +02:00
|
|
|
|
2018-07-19 15:36:56 +02:00
|
|
|
input_ray_pickable = true
|
|
|
|
input_capture_on_drag = false
|
|
|
|
collision_layer = 1
|
|
|
|
collision_mask = 1
|
|
|
|
axis_lock_linear_x = false
|
|
|
|
axis_lock_linear_y = false
|
|
|
|
axis_lock_linear_z = false
|
|
|
|
axis_lock_angular_x = false
|
|
|
|
axis_lock_angular_y = false
|
|
|
|
axis_lock_angular_z = false
|
|
|
|
collision/safe_margin = 0.001
|
2018-07-19 15:36:51 +02:00
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
2018-07-19 15:36:56 +02:00
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="." index="0"]
|
|
|
|
|
|
|
|
shape = SubResource( 1 )
|
|
|
|
disabled = false
|
|
|
|
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="." index="1"]
|
2018-07-19 15:36:51 +02:00
|
|
|
|
|
|
|
layers = 1
|
|
|
|
material_override = null
|
|
|
|
cast_shadow = 1
|
|
|
|
extra_cull_margin = 0.0
|
|
|
|
use_in_baked_light = false
|
|
|
|
lod_min_distance = 0.0
|
|
|
|
lod_min_hysteresis = 0.0
|
|
|
|
lod_max_distance = 0.0
|
|
|
|
lod_max_hysteresis = 0.0
|
2018-07-19 15:36:56 +02:00
|
|
|
mesh = SubResource( 2 )
|
2018-07-19 15:36:51 +02:00
|
|
|
skeleton = NodePath("..")
|
2018-07-19 15:36:56 +02:00
|
|
|
material/0 = SubResource( 4 )
|
2018-07-19 15:36:51 +02:00
|
|
|
_sections_unfolded = [ "material" ]
|
|
|
|
|
|
|
|
|