com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

NetworkTransform behaviour when InLocalSpace changes

Open daalen opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. If NetworkTransform's InLocalSpace changes during runtime, and interpolation is on, the object is teleported to its previous local coordinates in world coordinates or vice versa, before smoothly moving back to its correct position.

Describe the solution you'd like NetworkTransform should notice when InLocalSpace changed, and Teleport to the position in the correct coordinate system.

Describe alternatives you've considered I currently overwrite the position right after a change of space.

EDIT: From reading the code, I see that something is already in place for this – and yet I have issues. Perhaps it is because the checks for interpolation and localspace changes in NetworkTransform sometimes only go one way: from interpolated to not interpolated but not the other way around, for instance.

daalen avatar May 19 '22 14:05 daalen