Added dynamic spawning and despawning of objects
This commit is contained in:
parent
adbb208436
commit
e0cf8d9755
23 changed files with 794 additions and 350 deletions
31
prefabs/gameObjects/player.tscn
Normal file
31
prefabs/gameObjects/player.tscn
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
[gd_scene format=3 uid="uid://tlc6h5arfa6p"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cue3c56axvyja" path="res://scripts/Player.cs" id="1_74mkb"]
|
||||
[ext_resource type="Script" uid="uid://bwpdtkgmwjs7g" path="res://scripts/GravityReceiver.cs" id="2_y1ton"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_8cj0n"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_uwrxv"]
|
||||
|
||||
[node name="Player" type="CharacterBody3D" unique_id=1391068938]
|
||||
script = ExtResource("1_74mkb")
|
||||
SprintMultiplier = 500.0
|
||||
|
||||
[node name="Camera" type="Camera3D" parent="." unique_id=1639995310]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
|
||||
fov = 90.0
|
||||
|
||||
[node name="PlayerMesh" type="MeshInstance3D" parent="." unique_id=1449639248]
|
||||
mesh = SubResource("CapsuleMesh_8cj0n")
|
||||
|
||||
[node name="PlayerCollider" type="CollisionShape3D" parent="." unique_id=944580540]
|
||||
shape = SubResource("CapsuleShape3D_uwrxv")
|
||||
|
||||
[node name="GravityReceiver" type="Node3D" parent="." unique_id=2127509723]
|
||||
script = ExtResource("2_y1ton")
|
||||
|
||||
[node name="SpotLight3D" type="SpotLight3D" parent="." unique_id=1804770241]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.06334634196567002, -0.29036251889898157)
|
||||
shadow_enabled = true
|
||||
spot_range = 25.0
|
||||
spot_angle = 90.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue