From 873a9d0067af79e09ab6c40fbd467df5ba76d5f4 Mon Sep 17 00:00:00 2001 From: JesusLuvsYooh <57072365+JesusLuvsYooh@users.noreply.github.com> Date: Thu, 27 Jun 2024 08:40:22 +0100 Subject: [PATCH] fix(TopDownShooter): Adjusted slanted climbable wall colliders (#3849) * fix(TopDownShooter): Adjusted slanted climbable wall colliders * Removed previous colliders. --- .../Scenes/MirrorTopDownShooter.unity | 304 +++++++++++++----- 1 file changed, 216 insertions(+), 88 deletions(-) diff --git a/Assets/Mirror/Examples/TopDownShooter/Scenes/MirrorTopDownShooter.unity b/Assets/Mirror/Examples/TopDownShooter/Scenes/MirrorTopDownShooter.unity index bc8e36c43..1446fa4e8 100644 --- a/Assets/Mirror/Examples/TopDownShooter/Scenes/MirrorTopDownShooter.unity +++ b/Assets/Mirror/Examples/TopDownShooter/Scenes/MirrorTopDownShooter.unity @@ -1428,9 +1428,13 @@ Transform: m_Children: - {fileID: 1228330376} - {fileID: 1303994862} + - {fileID: 978426527} - {fileID: 1564395501} + - {fileID: 817071236} - {fileID: 1586139301} + - {fileID: 1940011624} - {fileID: 1744596716} + - {fileID: 1891592384} - {fileID: 816513755} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -1528,6 +1532,112 @@ Transform: m_Children: [] m_Father: {fileID: 776456717} m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} +--- !u!1 &817071235 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 817071236} + - component: {fileID: 817071237} + m_Layer: 0 + m_Name: Walls Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &817071236 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 817071235} + serializedVersion: 2 + m_LocalRotation: {x: -0.7071068, y: 0.7071068, z: -0, w: 0} + m_LocalPosition: {x: 50, y: 20, z: 0} + m_LocalScale: {x: 5, y: 10, z: 10} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 776456717} + m_LocalEulerAnglesHint: {x: 0, y: 180, z: -90} +--- !u!65 &817071237 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 817071235} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 10, y: 1.2, z: 10} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &978426526 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 978426527} + - component: {fileID: 978426528} + m_Layer: 0 + m_Name: Walls Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &978426527 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 978426526} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: -0.7071068, w: 0.7071068} + m_LocalPosition: {x: -50, y: 20, z: 0} + m_LocalScale: {x: 5, y: 10, z: 10} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 776456717} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: -90} +--- !u!65 &978426528 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 978426526} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 10, y: 1.2, z: 10} + m_Center: {x: 0, y: 0, z: 0} --- !u!1 &994685605 GameObject: m_ObjectHideFlags: 0 @@ -2433,7 +2543,6 @@ GameObject: - component: {fileID: 1303994862} - component: {fileID: 1303994865} - component: {fileID: 1303994864} - - component: {fileID: 1303994863} m_Layer: 0 m_Name: Walls m_TagString: Untagged @@ -2456,27 +2565,6 @@ Transform: m_Children: [] m_Father: {fileID: 776456717} m_LocalEulerAnglesHint: {x: 0, y: 0, z: -75} ---- !u!65 &1303994863 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1303994861} - m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 - m_IsTrigger: 0 - m_ProvidesContacts: 0 - m_Enabled: 1 - serializedVersion: 3 - m_Size: {x: 10, y: 2.220446e-16, z: 10} - m_Center: {x: 0, y: 0, z: 0} --- !u!23 &1303994864 MeshRenderer: m_ObjectHideFlags: 0 @@ -3295,7 +3383,6 @@ GameObject: - component: {fileID: 1564395501} - component: {fileID: 1564395504} - component: {fileID: 1564395503} - - component: {fileID: 1564395502} m_Layer: 0 m_Name: Walls (1) m_TagString: Untagged @@ -3318,27 +3405,6 @@ Transform: m_Children: [] m_Father: {fileID: 776456717} m_LocalEulerAnglesHint: {x: 0, y: 180, z: -75} ---- !u!65 &1564395502 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1564395500} - m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 - m_IsTrigger: 0 - m_ProvidesContacts: 0 - m_Enabled: 1 - serializedVersion: 3 - m_Size: {x: 10, y: 2.220446e-16, z: 10} - m_Center: {x: 0, y: 0, z: 0} --- !u!23 &1564395503 MeshRenderer: m_ObjectHideFlags: 0 @@ -3566,7 +3632,6 @@ GameObject: - component: {fileID: 1586139301} - component: {fileID: 1586139304} - component: {fileID: 1586139303} - - component: {fileID: 1586139302} m_Layer: 0 m_Name: Walls (2) m_TagString: Untagged @@ -3589,27 +3654,6 @@ Transform: m_Children: [] m_Father: {fileID: 776456717} m_LocalEulerAnglesHint: {x: 0, y: 90, z: -75} ---- !u!65 &1586139302 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1586139300} - m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 - m_IsTrigger: 0 - m_ProvidesContacts: 0 - m_Enabled: 1 - serializedVersion: 3 - m_Size: {x: 10, y: 2.220446e-16, z: 10} - m_Center: {x: 0, y: 0, z: 0} --- !u!23 &1586139303 MeshRenderer: m_ObjectHideFlags: 0 @@ -3984,7 +4028,6 @@ GameObject: - component: {fileID: 1744596716} - component: {fileID: 1744596719} - component: {fileID: 1744596718} - - component: {fileID: 1744596717} m_Layer: 0 m_Name: Walls (3) m_TagString: Untagged @@ -4007,27 +4050,6 @@ Transform: m_Children: [] m_Father: {fileID: 776456717} m_LocalEulerAnglesHint: {x: 0, y: -90, z: -75} ---- !u!65 &1744596717 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1744596715} - m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 - m_IsTrigger: 0 - m_ProvidesContacts: 0 - m_Enabled: 1 - serializedVersion: 3 - m_Size: {x: 10, y: 2.220446e-16, z: 10} - m_Center: {x: 0, y: 0, z: 0} --- !u!23 &1744596718 MeshRenderer: m_ObjectHideFlags: 0 @@ -4078,6 +4100,59 @@ MeshFilter: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1744596715} m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &1891592383 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1891592384} + - component: {fileID: 1891592385} + m_Layer: 0 + m_Name: Walls Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1891592384 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1891592383} + serializedVersion: 2 + m_LocalRotation: {x: 0.5, y: -0.5, z: -0.5, w: 0.5} + m_LocalPosition: {x: 0, y: 20, z: -50} + m_LocalScale: {x: 5, y: 10, z: 10} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 776456717} + m_LocalEulerAnglesHint: {x: 0, y: -90, z: -90} +--- !u!65 &1891592385 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1891592383} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 10, y: 1.2, z: 10} + m_Center: {x: 0, y: 0, z: 0} --- !u!1 &1903001049 GameObject: m_ObjectHideFlags: 0 @@ -4185,6 +4260,59 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1911677983} m_CullTransparentMesh: 1 +--- !u!1 &1940011623 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1940011624} + - component: {fileID: 1940011625} + m_Layer: 0 + m_Name: Walls Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1940011624 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1940011623} + serializedVersion: 2 + m_LocalRotation: {x: -0.5, y: 0.5, z: -0.5, w: 0.5} + m_LocalPosition: {x: 0, y: 20, z: 50} + m_LocalScale: {x: 5, y: 10, z: 10} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 776456717} + m_LocalEulerAnglesHint: {x: 0, y: 90, z: -90} +--- !u!65 &1940011625 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1940011623} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 10, y: 1.2, z: 10} + m_Center: {x: 0, y: 0, z: 0} --- !u!1 &2017861554 GameObject: m_ObjectHideFlags: 0