Consolidate player capsule

This commit is contained in:
Squinternator 2024-04-08 19:45:42 +00:00
parent 647ff30922
commit 873d6d024e
2 changed files with 4 additions and 9 deletions

Binary file not shown.

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=11 format=3 uid="uid://cbhx1xme0sb7k"]
[gd_scene load_steps=10 format=3 uid="uid://cbhx1xme0sb7k"]
[ext_resource type="Script" path="res://characters/player/player.gd" id="1_ymjub"]
[ext_resource type="PackedScene" uid="uid://bcv81ku26xo" path="res://interfaces/hud/hud.tscn" id="2_5qvi2"]
[ext_resource type="PackedScene" uid="uid://c8co0qa2omjmh" path="res://weapons/space_gun/space_gun.tscn" id="2_ka38u"]
[ext_resource type="Shape3D" uid="uid://dkwljsgaflf31" path="res://characters/player/collision_shape.res" id="2_y6kgj"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_clur0"]
resource_local_to_scene = true
@ -12,12 +13,6 @@ absorbent = true
[sub_resource type="CapsuleMesh" id="CapsuleMesh_vmqfq"]
radius = 0.3
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_rm4oh"]
radius = 0.3
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_3l0v2"]
radius = 0.3
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_rqdp6"]
properties/0/path = NodePath(".:linear_velocity")
properties/0/spawn = true
@ -113,11 +108,11 @@ script = ExtResource("1_ymjub")
mesh = SubResource("CapsuleMesh_vmqfq")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_rm4oh")
shape = ExtResource("2_y6kgj")
[node name="ShapeCast3D" type="ShapeCast3D" parent="."]
transform = Transform3D(1.05, 0, 0, 0, 1.05, 0, 0, 0, 1.05, 0, 0, 0)
shape = SubResource("CapsuleShape3D_3l0v2")
shape = ExtResource("2_y6kgj")
target_position = Vector3(0, 0, 0)
collide_with_areas = true