From 38abf6d5d234b8fe33a669301fa4391814d5a960 Mon Sep 17 00:00:00 2001 From: VinPropane Date: Sun, 5 Apr 2026 00:51:32 -0400 Subject: [PATCH] NS-23: NS-19 bump collision top-cap only (fix ramp snag) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Full bump box shared vertical faces with convex ramp wedges, doubling collision and snagging CharacterBody3D on and off. Replace with thin top BoxShape3D; ramps own all side contact. Raise Player floor_max_angle to 50° and floor_snap_length slightly for cleaner ramp floor snapping. --- client/scenes/main.tscn | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/client/scenes/main.tscn b/client/scenes/main.tscn index 15b85e4..9c9fce8 100644 --- a/client/scenes/main.tscn +++ b/client/scenes/main.tscn @@ -45,12 +45,18 @@ size = Vector3(1, 0.15, 1) [sub_resource type="BoxShape3D" id="BoxShape3D_ns19_bump_a"] size = Vector3(1, 0.15, 1) +[sub_resource type="BoxShape3D" id="BoxShape3D_ns19_bump_a_top"] +size = Vector3(1, 0.06, 1) + [sub_resource type="BoxMesh" id="BoxMesh_ns19_bump_b"] size = Vector3(0.85, 0.12, 0.85) [sub_resource type="BoxShape3D" id="BoxShape3D_ns19_bump_b"] size = Vector3(0.85, 0.12, 0.85) +[sub_resource type="BoxShape3D" id="BoxShape3D_ns19_bump_b_top"] +size = Vector3(0.85, 0.06, 0.85) + [sub_resource type="ConvexPolygonShape3D" id="Convex_ns19a_ramp_s"] points = PackedVector3Array(-0.5, -0.075, -0.65, 0.5, -0.075, -0.65, 0.5, -0.075, -0.5, -0.5, -0.075, -0.5, 0.5, 0.075, -0.5, -0.5, 0.075, -0.5) @@ -164,7 +170,8 @@ mesh = SubResource("BoxMesh_ns19_bump_a") surface_material_override/0 = SubResource("Mat_ns19_bump") [node name="CollisionShape3D" type="CollisionShape3D" parent="World/NavigationRegion3D/NS19BumpA" unique_id=1900003] -shape = SubResource("BoxShape3D_ns19_bump_a") +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.045, 0) +shape = SubResource("BoxShape3D_ns19_bump_a_top") [node name="RampSouth" type="StaticBody3D" parent="World/NavigationRegion3D/NS19BumpA" unique_id=1900004 groups=["walkable"]] collision_layer = 1 @@ -199,7 +206,8 @@ mesh = SubResource("BoxMesh_ns19_bump_b") surface_material_override/0 = SubResource("Mat_ns19_bump") [node name="CollisionShape3D" type="CollisionShape3D" parent="World/NavigationRegion3D/NS19BumpB" unique_id=1900013] -shape = SubResource("BoxShape3D_ns19_bump_b") +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.03, 0) +shape = SubResource("BoxShape3D_ns19_bump_b_top") [node name="RampSouth" type="StaticBody3D" parent="World/NavigationRegion3D/NS19BumpB" unique_id=1911004 groups=["walkable"]] collision_layer = 1 @@ -265,7 +273,8 @@ shape = SubResource("BoxShape3D_obstacle") transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0.9, -5) collision_layer = 2 collision_mask = 1 -floor_snap_length = 0.22 +floor_max_angle = 0.872665 +floor_snap_length = 0.28 script = ExtResource("2_player") [node name="CollisionShape3D" type="CollisionShape3D" parent="Player" unique_id=1695755590]