Skip to content

Commit 2d8e1cc

Browse files
fix
Allow a full teleport when using SwitchTransformSpaceWhenParented.
1 parent 4588548 commit 2d8e1cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

com.unity.netcode.gameobjects/Runtime/Components/NetworkTransform.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,8 +2148,7 @@ private bool CheckForStateChange(ref NetworkTransformState networkState, ref Tra
21482148
InLocalSpace = networkState.InLocalSpace;
21492149
}
21502150
isDirty = true;
2151-
// If SwitchTransformSpaceWhenParented is not set, then we will want to teleport
2152-
networkState.IsTeleportingNextFrame = !SwitchTransformSpaceWhenParented || isSynchronization;
2151+
21532152
// Otherwise, if SwitchTransformSpaceWhenParented is set we force a full state update.
21542153
// If interpolation is enabled, then any non-authority instance will update any pending
21552154
// buffered values to the correct world or local space values.

0 commit comments

Comments
 (0)