com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
fix: provide alternate tick registration method
This PR provides an alternate way to register a NetworkRigidbodyBase instance (child) with a root NetworkRigidbodyBase instance (parent) for tick synchronizing a joint attached child's state updates with the parent's/root's state updates.
Changelog
- Added:
NetworkRigidbodyBase.AddToTickSynchronizedUpdatesfor custom joint type solutions that just need to keep the attached objects synchronized with the root (parent) that the object(s) are attached to. - Added:
NetworkRigidbodyBase.RemoveFromTickSynchronizedUpdatesto remove any addedNetworkRigidbodyBaseinstances from tick synchronized updates.
Testing and Documentation
- No tests have been added.
- Documentation changes are needed (public documentation on usage).