Commit Graph

228 Commits

Author SHA1 Message Date
Karrar
569c12dee2 Fixed an issue when destroying an object that is affected by IM. 2024-06-28 20:01:47 +03:00
Karrar
4a22d6430b Fixed an issue with loading/unloading additive scenes. 2024-06-28 18:45:52 +03:00
Karrar
6157fde103 Fixed an issue with lag-compensated RaycastAll and RaycastAll2D hits not being assigned correct values for Point and Distance. 2024-06-25 14:39:04 +03:00
Karrar
fddbbbf606 Added lag-compensated RaycastAll and RaycastAll. 2024-06-25 09:53:28 +03:00
Karrar
1b8c390292 Fixed an issue with Lag Comp that occurs when you destroy an object with a HitShape Container and perform a lag-compensated query at the same tick. 2024-06-25 06:48:48 +03:00
Karrar
bb25ff6675 Fixed an issue with lag comp caused by relying on float equality. 2024-06-25 05:41:46 +03:00
Karrar
8c4bf3bea8 Added interpolationSource optional parameter to [Smooth]. This lets you choose the interpolation source for Auto Interpolation. 2024-06-25 04:40:19 +03:00
Karrar
9a2129ed9c Fixed an issue with Lag Comp where an exception would be thrown when several HitShape Containers are positioned in the same place. 2024-06-24 17:10:56 +03:00
Karrar
26ceabcd86 Testing a fix for an issue with lag comp. 2024-06-21 04:36:27 +03:00
Karrar
33c1c73475 Fixed an issue causing the previous fix to be not functional. 2024-06-17 00:29:07 +03:00
Karrar
959685d2ee Fixed a jitter issue with Local Interpolation that is most noticeable when a locally simulated object is too close to the camera. 2024-06-16 21:42:26 +03:00
Karrar
4e8fc9ef97 Changed fields on HitShape from private to public. 2024-06-09 01:29:44 +03:00
Karrar
e2720f7800 Fixed an issue causing Rigidbody.isKinematic to not replicate to clients when using NetworkRigidbody. 2024-06-09 01:23:19 +03:00
Karrar
e7b89d90f0 Improved Prediction Error Correction Smoothing by coupling position and rotation in the corrector. 2024-06-07 10:56:23 +03:00
Karrar
f7ac776294 Changed the way OnPlayerConnected is invoked for the host player. Now it's invoked after NetworkStart has been invoked for all scene objects and the sandbox object. This is safer than before to avoid the problem of subscribing to Sandbox.Events.OnPlayerConnected in a scene object after it was already invoked for the host player, thus missing the call for the host player on that scene object. 2024-05-26 02:35:06 +03:00
Karrar
5b34dc69a5 Fixed an issue when destroying an object that has a NetworkTransform, NetworkRigidbody, or NetworkRigidbody2D component which has Prediction Error Correction Smoothing set to true. 2024-05-24 17:39:22 +03:00
Karrar
ccab14eb75 Added a feature for prediction error correction smoothing on NetworkTransform, NetworkRigidbody, and NetworkRigidbody2D. 2024-05-23 21:03:34 +03:00
Karrar
b8f7ff1294 Changed OnPlayerDisconnected to be invoked for the host player in the host when Netick shuts down. 2024-05-13 03:18:45 +03:00
Karrar
4fb0fbbe61 Fixed an issue causing Netick to not consider the host as a player in regards to NetickConfig.MaxPlayers. 2024-05-13 03:07:19 +03:00
Karrar
e4402c4c28 Fixed an issue with Lag Comp caused by refactoring code. 2024-05-12 03:49:25 +03:00
Karrar
e42bf75da9 Implemented TransportConnection.SendUserData in LiteNetLib transport. 2024-05-12 02:03:03 +03:00
Karrar
1a598bdc52 Added support for sending data that is decoupled from Netick main packets, directly using the transport.
- added `SendData` to `NetworkConnection`.
- added `OnDataReceived` to `Sandbox.Events`.
- added `SendUserData` to `TransportConnection`.
2024-05-12 01:55:49 +03:00
Karrar
957fed25e0 Added NetworkSandbox.PhysicsPrediction. This lets you toggle Physics Prediction` in the client at runtime, so that, for example, you can enable it in some game modes or maps and not in others. 2024-05-11 04:19:19 +03:00
Karrar
6fcb3a981b Updated package.json. 2024-05-10 22:40:17 +03:00
Karrar
755fe63261 Fixed an issue causing DestroyPool to not destroy free instances. 2024-05-10 22:33:45 +03:00
Karrar
21cfc82227 Fixed an issue when destroying a NetworkObject with a network id of -1. 2024-05-10 11:07:19 +03:00
Karrar
e5d78fe412 Fixed an issue with Sandbox.DestroyPool not working correctly. 2024-05-09 23:43:24 +03:00
Karrar
d4570df8e9 Updated README.md 2024-05-04 00:40:42 +03:00
Karrar
d423ff7817 Fixed an issue a client to use the inputs of other clients at high player counts. 2024-05-04 00:29:19 +03:00
Karrar
d85fb52d28 Updated Version. 2024-05-02 06:07:51 +03:00
Karrar
22faabd876 Fixed several issues with Interest Management.
- Fixed an issue causing `NetworkStart` to be invoked when the object has not yet applied its initial state in the client.
- Changed IM to not invoke `NetworkDestroy` when `NetworkStart` was not invoked for a destroyed object in the client.
- Changed IM to not simulate objects that the client is not interested in.
2024-05-02 00:45:56 +03:00
Karrar
6ba5ceeffa Fixed an issue causing NetworkBehaviour.InputSourcePlayerId to be -1 sometimes when accessed inside OnBecameInterested or OnBecameUninterested. 2024-05-01 08:06:49 +03:00
Karrar
ebafddd20b Fixed an issue causing NetworkBehaviour.InputSourcePlayerId to not replicate to the client for proxy objects. 2024-04-30 18:01:44 +03:00
Karrar
31eeed728c Fixed an issue causing network objects affected by Interest Management filtering to be not registered in the simulation in the client. 2024-04-30 17:39:42 +03:00
Karrar
dcae104426 Fixed an issue causing the main physics scene to be assigned to every sandbox when switching scenes and using 2D Physics. 2024-04-29 18:10:53 +03:00
Karrar
841fe27fb3 Fixed an issue causing Sandbox.Instantiate to not hide the instantiated GameObject when this sandbox is currently hidden. 2024-04-29 10:11:00 +03:00
Karrar
2c62f1db14 Updated README.md. 2024-04-28 14:48:15 +03:00
Karrar
86fcbacc1d Updated README.md. 2024-04-28 14:44:48 +03:00
Karrar
a437aaaede Updated README.md. 2024-04-28 14:44:02 +03:00
Karrar
76ed50b430 Updated Installation section in README.md 2024-04-28 12:30:06 +03:00
Karrar
daa599f0fc Read the description for commit details.
- Added `OnSceneOperationBegan` and `OnSceneOperationDone`. These are network events for when a scene load/unload operation begins and when it is finished, they offer more information than the older equivalent methods. `OnSceneLoadStarted` and `OnSceneLoaded` are now marked as `[Obsolete]` and will be removed in the future.
- Added `Teleport` method to `NetworkTransform`, `NetworkRigidbody`, and `NetworkRigidbody2D`. This allows you to skip interpolation for one tick.
- Fixed an issue causing scene objects to not get destroyed for late joiners.
2024-04-28 12:06:20 +03:00
Karrar
6f8278a1fc Added inspector drawer for NetworkBool network properties. 2024-04-16 18:29:34 +03:00
Karrar
80ed43ffa7 Updated XML docs. 2024-04-13 12:30:42 +03:00
Karrar
5d79977c17 Fixed an issue in Unity 2021 due to using SimulationMode instead of autoSimulation for 3D Physics. 2024-04-13 12:15:12 +03:00
Karrar
c39dfc463e Fixed an issue with kinematic rigidbodies when Physics Prediction is enabled. 2024-04-13 08:41:01 +03:00
Karrar
1d33a78810 Fixed an issue where NetworkObjectRef.TryGetObject would always return true. 2024-04-09 08:00:55 +03:00
Karrar
417785f97b Removed a reference to Unity.PlasticSCM. 2024-04-08 11:56:33 +03:00
Karrar
5cf253bf12 Fixed an issue when switching scene where Netick would use the networked SetParent method on scene objects. 2024-04-08 08:32:44 +03:00
Karrar
90d4167a30 Fixed an issue causing GameEngineIntoNetcode to use the previous tick value. 2024-04-08 05:03:00 +03:00
Karrar
69fff76c10 Fixed an issue that was causing Lag Compensation to not work correctly. 2024-04-08 03:54:46 +03:00