fix: collision shape of the object not the collision node itself
This commit is contained in:
@@ -16,6 +16,7 @@ albedo_color = Color(0.16862746, 0.52156866, 0.30588236, 1)
|
|||||||
[sub_resource type="BoxMesh" id="BoxMesh_sgp6g"]
|
[sub_resource type="BoxMesh" id="BoxMesh_sgp6g"]
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_lquwl"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_lquwl"]
|
||||||
|
size = Vector3(30, 0.1, 30)
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_o5qli"]
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_o5qli"]
|
||||||
radius = 0.4
|
radius = 0.4
|
||||||
@@ -52,7 +53,7 @@ mesh = SubResource("BoxMesh_sgp6g")
|
|||||||
skeleton = NodePath("../../..")
|
skeleton = NodePath("../../..")
|
||||||
|
|
||||||
[node name="GroundCollision" type="CollisionShape3D" parent="World/NavigationRegion3D/GroundRoot"]
|
[node name="GroundCollision" type="CollisionShape3D" parent="World/NavigationRegion3D/GroundRoot"]
|
||||||
transform = Transform3D(30, 0, 0, 0, 0.1, 0, 0, 0, 30, 0, 0.18380833, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.18380833, 0)
|
||||||
shape = SubResource("BoxShape3D_lquwl")
|
shape = SubResource("BoxShape3D_lquwl")
|
||||||
|
|
||||||
[node name="Player" type="CharacterBody3D" parent="." node_paths=PackedStringArray("camera_rig")]
|
[node name="Player" type="CharacterBody3D" parent="." node_paths=PackedStringArray("camera_rig")]
|
||||||
|
|||||||
Reference in New Issue
Block a user