Adds Player controller
This commit is contained in:
commit
ab3890896d
35 changed files with 26403 additions and 0 deletions
33
prefabs/player.tscn
Normal file
33
prefabs/player.tscn
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://ctu0cdqcefrwg"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player/player.gd" id="1_1tqna"]
|
||||
[ext_resource type="Script" path="res://scripts/player/cameraController.gd" id="1_v2q4i"]
|
||||
[ext_resource type="PackedScene" uid="uid://c2x0xjb2ypfpq" path="res://content/rifle/weapon.tscn" id="3_5cmgy"]
|
||||
[ext_resource type="Script" path="res://scripts/player/weapon.gd" id="4_nfpgt"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_w4dyg"]
|
||||
margin = 0.332
|
||||
|
||||
[node name="Player" type="CharacterBody3D"]
|
||||
axis_lock_angular_x = true
|
||||
axis_lock_angular_z = true
|
||||
script = ExtResource("1_1tqna")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CylinderShape3D_w4dyg")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="." node_paths=PackedStringArray("PlayerNode")]
|
||||
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 1.68094, 0)
|
||||
keep_aspect = 0
|
||||
fov = 80.0
|
||||
script = ExtResource("1_v2q4i")
|
||||
PlayerNode = NodePath("..")
|
||||
|
||||
[node name="Weapon" parent="Camera3D" instance=ExtResource("3_5cmgy")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.096244, 0)
|
||||
script = ExtResource("4_nfpgt")
|
||||
|
||||
[node name="CooldownTimer" type="Timer" parent="Camera3D/Weapon"]
|
||||
wait_time = 0.3
|
||||
one_shot = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue