This repository has been archived on 2023-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
godot3-fps-example/NewFPS.tscn
2020-10-18 21:46:51 -04:00

38 lines
1.1 KiB
Plaintext

[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 )