Skip to content

Commit a54d556

Browse files
Fix: Negative Collider Warning [MTT-6993] (#854)
* changed the scale on diagonal wall colliders to not be negative * changelog update * added PR number to changelog
1 parent b9feeb0 commit a54d556

File tree

3 files changed

+35
-7
lines changed

3 files changed

+35
-7
lines changed

Assets/Prefabs/Dungeon/Dungeon Pieces/env_wall1_base_diagonal_1.prefab

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Transform:
2828
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
2929
m_LocalPosition: {x: 0, y: 0, z: 0}
3030
m_LocalScale: {x: 1, y: 1, z: 1}
31+
m_ConstrainProportionsScale: 0
3132
m_Children:
3233
- {fileID: 5915529853195630635}
3334
m_Father: {fileID: 0}
@@ -52,6 +53,7 @@ MeshRenderer:
5253
m_CastShadows: 0
5354
m_ReceiveShadows: 1
5455
m_DynamicOccludee: 1
56+
m_StaticShadowCaster: 0
5557
m_MotionVectors: 1
5658
m_LightProbeUsage: 1
5759
m_ReflectionProbeUsage: 1
@@ -106,13 +108,14 @@ Transform:
106108
m_PrefabInstance: {fileID: 0}
107109
m_PrefabAsset: {fileID: 0}
108110
m_GameObject: {fileID: 8750842352150602452}
109-
m_LocalRotation: {x: -0.92387956, y: -0.00000017299969, z: -0.38268343, w: -0.00000007165881}
111+
m_LocalRotation: {x: 0, y: -0.38268343, z: 0, w: 0.92387956}
110112
m_LocalPosition: {x: -2.02, y: 1.96, z: -2.01}
111-
m_LocalScale: {x: -1, y: -1, z: -1}
113+
m_LocalScale: {x: 1, y: 1, z: 1}
114+
m_ConstrainProportionsScale: 0
112115
m_Children: []
113116
m_Father: {fileID: 4437348436208465204}
114117
m_RootOrder: 0
115-
m_LocalEulerAnglesHint: {x: -180, y: -45, z: -0.000015258789}
118+
m_LocalEulerAnglesHint: {x: 0, y: -45, z: 0}
116119
--- !u!65 &7898993292670171814
117120
BoxCollider:
118121
m_ObjectHideFlags: 0
@@ -121,8 +124,16 @@ BoxCollider:
121124
m_PrefabAsset: {fileID: 0}
122125
m_GameObject: {fileID: 8750842352150602452}
123126
m_Material: {fileID: 0}
127+
m_IncludeLayers:
128+
serializedVersion: 2
129+
m_Bits: 0
130+
m_ExcludeLayers:
131+
serializedVersion: 2
132+
m_Bits: 0
133+
m_LayerOverridePriority: 0
124134
m_IsTrigger: 0
135+
m_ProvidesContacts: 0
125136
m_Enabled: 1
126-
serializedVersion: 2
137+
serializedVersion: 3
127138
m_Size: {x: 1, y: 4, z: 6}
128139
m_Center: {x: 0, y: 0, z: 0}

Assets/Prefabs/Dungeon/Dungeon Pieces/env_wall1_base_diagonal_2.prefab

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Transform:
2828
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
2929
m_LocalPosition: {x: 0, y: 0, z: 0}
3030
m_LocalScale: {x: 1, y: 1, z: 1}
31+
m_ConstrainProportionsScale: 0
3132
m_Children:
3233
- {fileID: 8193510332667705931}
3334
m_Father: {fileID: 0}
@@ -52,6 +53,7 @@ MeshRenderer:
5253
m_CastShadows: 0
5354
m_ReceiveShadows: 1
5455
m_DynamicOccludee: 1
56+
m_StaticShadowCaster: 0
5557
m_MotionVectors: 1
5658
m_LightProbeUsage: 1
5759
m_ReflectionProbeUsage: 1
@@ -107,8 +109,9 @@ Transform:
107109
m_PrefabAsset: {fileID: 0}
108110
m_GameObject: {fileID: 4914060456935432399}
109111
m_LocalRotation: {x: 0, y: -0.38268343, z: 0, w: 0.92387956}
110-
m_LocalPosition: {x: 2.5663843, y: 1.5000002, z: 2.5656066}
112+
m_LocalPosition: {x: -1.83, y: 2.03, z: -2.11}
111113
m_LocalScale: {x: 1, y: 1, z: 1}
114+
m_ConstrainProportionsScale: 0
112115
m_Children: []
113116
m_Father: {fileID: 2698721903467665021}
114117
m_RootOrder: 0
@@ -121,8 +124,16 @@ BoxCollider:
121124
m_PrefabAsset: {fileID: 0}
122125
m_GameObject: {fileID: 4914060456935432399}
123126
m_Material: {fileID: 0}
127+
m_IncludeLayers:
128+
serializedVersion: 2
129+
m_Bits: 0
130+
m_ExcludeLayers:
131+
serializedVersion: 2
132+
m_Bits: 0
133+
m_LayerOverridePriority: 0
124134
m_IsTrigger: 0
135+
m_ProvidesContacts: 0
125136
m_Enabled: 1
126-
serializedVersion: 2
137+
serializedVersion: 3
127138
m_Size: {x: 1, y: 4, z: 6}
128-
m_Center: {x: -6.5, y: 0.5, z: 0}
139+
m_Center: {x: 0, y: 0, z: 0}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

77
Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com).
88

9+
## [Unreleased]
10+
11+
### Fixed
12+
* Fixed colliders on diagonal walls to not have negative scale (#854).
13+
14+
915
## [2.2.0] - 2023-07-06
1016

1117
### Added

0 commit comments

Comments
 (0)