Skip to content

Commit d2938f7

Browse files
update
Adjusting the NetworkTransform side of things
1 parent 4b5fd69 commit d2938f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,11 +1631,11 @@ private void TryCommitTransform(ref Transform transformToCommit, bool synchroniz
16311631

16321632
#if COM_UNITY_MODULES_PHYSICS
16331633
// We handle updating attached bodies when the "parent" body has a state update in order to keep their delta state updates tick synchronized.
1634-
if (m_UseRigidbodyForMotion && m_NetworkRigidbodyInternal.NetworkRigidbodyConnections.Count > 0)
1634+
if (m_UseRigidbodyForMotion && m_NetworkRigidbodyInternal.NetworkTransformConnections.Count > 0)
16351635
{
1636-
foreach (var childRigidbody in m_NetworkRigidbodyInternal.NetworkRigidbodyConnections)
1636+
foreach (var child in m_NetworkRigidbodyInternal.NetworkTransformConnections)
16371637
{
1638-
childRigidbody.NetworkTransform.OnNetworkTick(true);
1638+
child.OnNetworkTick(true);
16391639
}
16401640
}
16411641
#endif

0 commit comments

Comments
 (0)