Skip to content

Commit d31724f

Browse files
update
Removing the spam error message about parenting and using local space when using rigidbody for motion. This can be a documentation thing and there may be certain scenarios where one might want to do this anyway.
1 parent 3e764e0 commit d31724f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,13 +2074,6 @@ private bool CheckForStateChange(ref NetworkTransformState networkState, ref Tra
20742074
// buffered values to the correct world or local space values.
20752075
forceState = SwitchTransformSpaceWhenParented;
20762076
}
2077-
#if COM_UNITY_MODULES_PHYSICS || COM_UNITY_MODULES_PHYSICS2D
2078-
else if (InLocalSpace && m_UseRigidbodyForMotion)
2079-
{
2080-
// TODO: Provide more options than just FixedJoint
2081-
Debug.LogError($"[Rigidbody] WHen using a Rigidbody for motion, you cannot use {nameof(InLocalSpace)}! If parenting, use the integrated FixedJoint or use a Joint on Authority side.");
2082-
}
2083-
#endif
20842077

20852078
// Check for parenting when synchronizing and/or teleporting
20862079
if (isSynchronization || networkState.IsTeleportingNextFrame)

0 commit comments

Comments
 (0)