Commit 20ad052
* update
working version that needs clean up
* update
Some touch ups and adjustments to the fix for the extrapolation issue.
* style
adding some minor comments
* update
Added comments and renamed a property.
* update
some code clean up and additional comments
* update
MTT-4521
updating changelog file
* update
MTT-4521
Renamed StopExtrapolatingLastState to TryToStopExtrapolatingLastState.
Added/adjusted comments.
* update
Applying suggested changes.
* update
removing some changes I made while testing out extrapolating past the target.
adjusted comment.
* style
adjusted comment for clarity purposes.
* test
Adding some of the tests. Still WIP, but wanted to see how the first completed test fairs in Yamato and on consoles.
* style
removing unused namespace.
* test update
Added a form of tick synchronization prior to making changes to the authoritative transform state.
* style
adjusting comments.
* test
- Added NetworkTransformParentedLocalSpaceTests with associated helper methods, components, and properties.
- Added an "Authority" suffixe to the Authority enums for better clarity when looking at the tests within test runner.
- Updated/added additional comments
* style
Making NetworkTransformParentedLocalSpaceTests singular (NetworkTransformParentedLocalSpaceTest)
* style
adding remarks around comments
* style
splitting the comment into a summary with remarks.
* style
updating a comment on the UpdateAuthoritativeState method.
* fix
Copy paste issue.
(need to revisit tests to see why they didn't catch this)
* fix
z component
* fix
using the eurlerAngles... that section of code was a mess!
(sorry!)
* update
Just adding some parenthesis per Kitty's suggestion.
* update and fix
Updated ApplyAuthoritativeState so that it is less complicated to follow.
Fixed another issue discovered where the replicated network state values were being used for resetting interpolators during spawn initialization. Since the replicated network state only has the most recent deltas at the time the NetworkObject is serialized, this would cause "seemingly random" late joining issues.
* test update
This validates the issue with the more recent updates that revealed the network state only having the most recent deltas and not the full transform state. This resulted in various "seemingly" random late join transform synchronization issues (specifically the scale that is not being synchronized when spawning NetworkObjects).
* update
removed the unnecessary else if (useInterpolatedValue) condition and re-organized it such that it checks to see if it needs to apply interpolation or just depends upon the state to apply the values directly.
Added additional comments about this area of the code and future improvements.
* fix
Removing unclamped slerp and lerp due to a few timing related issues. These issues should be solved before re-enabling any form of unclamped lerping/slerping with BufferedLinearInterpolator.
Added additional comments in some areas to be investigated for a potential fix.
* fix
temporarily disabling two editor based interpolator extrapolation based tests until I can refactor them to not take extrapolated values into consideration.
* fix
removing debug code used to verify NetworkTransform is not the only thing within NGO that fails when dropping packets (most likely to occur 20-30% drop rate).
* fix
Make sure to initialize based on whether it is set to world or local space.
* fix
When authority is applying the current position and rotation during OnNetworkSpawn, use the appropriate local vs world space values.
* update
Adding another fix to the change log
Co-authored-by: ashwini <36935028+ashwinimurt@users.noreply.github.com>
1 parent b6a68e7 commit 20ad052
5 files changed
Lines changed: 571 additions & 141 deletions
File tree
- com.unity.netcode.gameobjects
- Components
- Interpolator
- Tests
- Editor
- Runtime/NetworkTransform
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
292 | 294 | | |
293 | 295 | | |
294 | 296 | | |
295 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
296 | 300 | | |
297 | 301 | | |
298 | 302 | | |
| |||
311 | 315 | | |
312 | 316 | | |
313 | 317 | | |
314 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
315 | 321 | | |
316 | 322 | | |
317 | 323 | | |
318 | 324 | | |
319 | 325 | | |
320 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
321 | 329 | | |
322 | 330 | | |
323 | 331 | | |
0 commit comments