-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathNewFPSCont.tscn
More file actions
40 lines (29 loc) · 1.23 KB
/
NewFPSCont.tscn
File metadata and controls
40 lines (29 loc) · 1.23 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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://scripts/NewFPSCont.gd" type="Script" id=1]
[ext_resource path="res://assets/generic.material" type="Material" id=4]
[sub_resource type="CapsuleMesh" id=1]
material = ExtResource( 4 )
mid_height = 3.0
[sub_resource type="CapsuleShape" id=2]
height = 3.0
[sub_resource type="CylinderShape" id=3]
[node name="NewFPSCont" type="KinematicBody"]
script = ExtResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
cast_shadow = 0
mesh = SubResource( 1 )
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
shape = SubResource( 2 )
[node name="Foot" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.5, 0 )
shape = SubResource( 3 )
[node name="Head" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, 0 )
[node name="Camera" type="Camera" parent="Head"]
[node name="GroundCheck" type="RayCast" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0 )
enabled = true
cast_to = Vector3( 0, -1.5, 0 )