You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.5 KiB
44 lines
1.5 KiB
[gd_scene load_steps=6 format=3 uid="uid://daihc7acaxfns"] |
|
|
|
[ext_resource type="Script" path="res://player/MovementController.cs" id="1_akh08"] |
|
[ext_resource type="Script" path="res://player/CameraController.cs" id="2_2din1"] |
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_urpcu"] |
|
albedo_color = Color(0.25098, 0.690196, 0.12549, 0.815686) |
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_7ljg8"] |
|
material = SubResource("StandardMaterial3D_urpcu") |
|
radius = 0.2 |
|
height = 0.35 |
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_6qbb2"] |
|
radius = 0.2 |
|
|
|
[node name="Character" type="CharacterBody3D"] |
|
collision_layer = 4 |
|
collision_mask = 3 |
|
floor_max_angle = 0.698132 |
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."] |
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.15, 0) |
|
mesh = SubResource("SphereMesh_7ljg8") |
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."] |
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0) |
|
shape = SubResource("SphereShape3D_6qbb2") |
|
|
|
[node name="MovementController" type="Node" parent="."] |
|
script = ExtResource("1_akh08") |
|
|
|
[node name="CameraArm" type="SpringArm3D" parent="."] |
|
transform = Transform3D(1, 0, 0, 0, 0.766044, 0.642788, 0, -0.642788, 0.766044, 0, 0.1, 0) |
|
collision_mask = 3 |
|
spring_length = 2.0 |
|
margin = 0.05 |
|
script = ExtResource("2_2din1") |
|
|
|
[node name="Camera" type="Camera3D" parent="CameraArm"] |
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2) |
|
current = true |
|
size = 4.5 |
|
far = 500.0
|
|
|