Browse Source

Updating collision shapes heights and radius

pull/5/head
Ryan Reed 1 month ago
parent
commit
6343bfa063
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      scenes/player/player.tscn

+ 6
- 2
scenes/player/player.tscn View File

@ -4,9 +4,12 @@
[ext_resource type="Script" uid="uid://bruuttf8j7wet" path="res://scenes/player/ray_cast_look.gd" id="2_dovo2"] [ext_resource type="Script" uid="uid://bruuttf8j7wet" path="res://scenes/player/ray_cast_look.gd" id="2_dovo2"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_tv3cd"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_tv3cd"]
radius = 0.47
height = 1.95
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_yk0hw"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_yk0hw"]
height = 1.2
radius = 0.2
height = 0.89
[node name="Player" type="CharacterBody3D"] [node name="Player" type="CharacterBody3D"]
script = ExtResource("1_7sql3") script = ExtResource("1_7sql3")
@ -33,4 +36,5 @@ debug_shape_custom_color = Color(0.753415, 4.77457e-05, 0.578804, 1)
script = ExtResource("2_dovo2") script = ExtResource("2_dovo2")
[node name="RayCastCrouch" type="RayCast3D" parent="."] [node name="RayCastCrouch" type="RayCast3D" parent="."]
target_position = Vector3(0, 2, 0)
editor_description = "Y should be just slightly higher than the height of the standing collision shape"
target_position = Vector3(0, 1.96, 0)

Loading…
Cancel
Save