Repository navigation
Commit ee8c8ee
authored
fix: Auto configure rigidbody based on physics mode selection (#4229)
* fix
Fixing issue with rigidbody and physics mode.
* update
Adding minor blurb about the rigidbody adjustments
* style
Adding whitespace
* fix: scope physics mode workarounds to hybrid sessions and keep them across authority changes
- AlwaysRun interpolation override now applies only when the session has hybrid prefabs (N4E defaults to AlwaysRun, so plain NGO sessions were affected), only to 3D Rigidbodies, and is reapplied on every kinematic/ownership update instead of being reset to the authored value.
- Restores the authored kinematic capture for hybrid prefabs to Awake only, so OnDestroy no longer restores the runtime kinematic state.
- Guards both NetcodeConfig.Global reads against a missing config, and compiles the full tick smoothing change only when a physics module is present.1 parent 699cb27 commit ee8c8ee
3 files changed
Lines changed: 55 additions & 0 deletions
File tree
- com.unity.netcode.gameobjects
- Documentation~
- Runtime
- Components
- Configuration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
301 | 320 | | |
302 | 321 | | |
303 | 322 | | |
| |||
956 | 975 | | |
957 | 976 | | |
958 | 977 | | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
959 | 986 | | |
960 | 987 | | |
961 | 988 | | |
| |||
1103 | 1130 | | |
1104 | 1131 | | |
1105 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
1106 | 1139 | | |
1107 | 1140 | | |
1108 | 1141 | | |
| |||
1122 | 1155 | | |
1123 | 1156 | | |
1124 | 1157 | | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
1125 | 1161 | | |
1126 | 1162 | | |
1127 | 1163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
182 | 194 | | |
183 | 195 | | |
184 | 196 | | |
| |||
0 commit comments