com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
NetworkTransform method SetState seems wrong
The method SetState in NetworkTransform assign parameter shouldGhostsInterpolate to IsTeleportingNextFrame.
I think shouldGhostsInterpolate =true means need to interpolate, but IsTeleportingNextFrame=true means not interpolate.
Please check it. Thanks.
@superztf Hello! Yeah, I am not that happy with the name myself. On the other hand, you could take a look at PR-2110. If you look at the updates to SetState, you will see that it now inverts that value to denote "not teleporting"... so it makes a little more sense.
Unfortunately, if you have interpolation disabled that property doesn't make sense (IMO).
Since this would change the public facing API, it isn't something we can do for the up-coming patch but we could stand to improve that parameter name next minor version update. 👍
Backlog: MTT-4462
This should be resolved in the coming update (v1.3.0)