Intial commit

This commit is contained in:
2020-10-18 21:46:51 -04:00
commit af15952e34
9 changed files with 234 additions and 0 deletions

37
NewFPS.tscn Normal file
View File

@@ -0,0 +1,37 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://NewFPS.gd" type="Script" id=1]
[sub_resource type="CapsuleMesh" id=1]
mid_height = 3.0
[sub_resource type="CapsuleShape" id=2]
height = 3.0
[sub_resource type="CylinderShape" id=3]
[node name="NewFPS" 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 )
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.49618, 0 )
shape = SubResource( 3 )
[node name="Head" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.53131, 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 )