Split out player
This commit is contained in:
		
							parent
							
								
									c7a4bf7e81
								
							
						
					
					
						commit
						5feb0513f3
					
				| @ -1,4 +1,4 @@ | ||||
| [gd_scene load_steps=112 format=4 uid="uid://8po7ftboqq4k"] | ||||
| [gd_scene load_steps=111 format=4 uid="uid://8po7ftboqq4k"] | ||||
| 
 | ||||
| [ext_resource type="CameraAttributesPhysical" uid="uid://cxyj2tvfksjl6" path="res://maps/hazy_env_camera_attrs.tres" id="1_r2j1d"] | ||||
| [ext_resource type="LightmapGIData" uid="uid://bp05p4yab2ukx" path="res://maps/demo.lmbake" id="2_2ehlo"] | ||||
| @ -9,7 +9,7 @@ | ||||
| [ext_resource type="Material" uid="uid://bpikku6t3gxi5" path="res://textures/white.tres" id="7_70h1h"] | ||||
| [ext_resource type="Material" uid="uid://dgf570wtqn17j" path="res://textures/steel_fence.tres" id="8_dovc4"] | ||||
| [ext_resource type="PackedScene" uid="uid://b61birqrnbee3" path="res://prefabs/building_block_creator.tscn" id="9_w4r35"] | ||||
| [ext_resource type="Script" path="res://scripts/Player.cs" id="10_87t4r"] | ||||
| [ext_resource type="PackedScene" uid="uid://wjbuh7jk50nm" path="res://prefabs/player.tscn" id="10_3xiy2"] | ||||
| 
 | ||||
| [sub_resource type="ArrayMesh" id="ArrayMesh_kaiip"] | ||||
| lightmap_size_hint = Vector2i(1030, 566) | ||||
| @ -649,10 +649,6 @@ points = PackedVector3Array(-15.2154, 16, 3.21429, 0.784632, -16, -12.7857, 2.78 | ||||
| [sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_i1n6v"] | ||||
| points = PackedVector3Array(-3.21348, 16, 13.2143, 12.7865, -16, -2.78572, 15.7846, -16, -2.78571, -0.21537, 16, 13.2143, -3.21348, 16, 15.2143, 12.7865, -16, -0.785713, 15.7846, -16, -0.785711, -0.215368, 16, 15.2143) | ||||
| 
 | ||||
| [sub_resource type="CylinderShape3D" id="CylinderShape3D_rgktv"] | ||||
| height = 1.9 | ||||
| radius = 0.3 | ||||
| 
 | ||||
| [node name="Demo" type="Node3D"] | ||||
| 
 | ||||
| [node name="LightmapGI" type="LightmapGI" parent="."] | ||||
| @ -1057,14 +1053,4 @@ size = Vector3(87.9724, 96.1174, 91.8458) | ||||
| transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0415039, 58.3319, 0.0198975) | ||||
| size = Vector3(43.3174, 26.5295, 43.4319) | ||||
| 
 | ||||
| [node name="Player" type="CharacterBody3D" parent="." node_paths=PackedStringArray("Eye")] | ||||
| transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.51124, 0) | ||||
| script = ExtResource("10_87t4r") | ||||
| Eye = NodePath("PlayerEyeCamera") | ||||
| 
 | ||||
| [node name="PlayerEyeCamera" type="Camera3D" parent="Player"] | ||||
| transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7, 0) | ||||
| 
 | ||||
| [node name="CollisionShape3D" type="CollisionShape3D" parent="Player"] | ||||
| transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.95, 0) | ||||
| shape = SubResource("CylinderShape3D_rgktv") | ||||
| [node name="Player" parent="." instance=ExtResource("10_3xiy2")] | ||||
|  | ||||
							
								
								
									
										19
									
								
								prefabs/player.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								prefabs/player.tscn
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| [gd_scene load_steps=3 format=3 uid="uid://wjbuh7jk50nm"] | ||||
| 
 | ||||
| [ext_resource type="Script" path="res://scripts/Player.cs" id="1_aff2a"] | ||||
| 
 | ||||
| [sub_resource type="CylinderShape3D" id="CylinderShape3D_rgktv"] | ||||
| height = 1.9 | ||||
| radius = 0.3 | ||||
| 
 | ||||
| [node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("Eye")] | ||||
| transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.51124, 0) | ||||
| script = ExtResource("1_aff2a") | ||||
| Eye = NodePath("PlayerEyeCamera") | ||||
| 
 | ||||
| [node name="PlayerEyeCamera" type="Camera3D" parent="."] | ||||
| transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7, 0) | ||||
| 
 | ||||
| [node name="CollisionShape3D" type="CollisionShape3D" parent="."] | ||||
| transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.95, 0) | ||||
| shape = SubResource("CylinderShape3D_rgktv") | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user