Commit Graph

199 Commits

Author SHA1 Message Date
Karrar
b24d56ca1b Fixed an issue causing a child network object to jitter compared to its parent. 2024-07-15 10:45:03 +03:00
Karrar
b87f653765 Testing a fix for a jitter issue that occurs when parenting network objects. 2024-07-13 09:18:26 +03:00
Karrar
21f9efc064 Removed a small GC allocation from pooled objects with HitShape Container. 2024-07-13 08:18:19 +03:00
Karrar
b486632590 Testing a fix for a jitter issue that occurs when parenting network objects. 2024-07-12 12:44:54 +03:00
Karrar
2e7f114fac Fixed an issue with OnVisibilityChanged network event. 2024-07-08 22:10:21 +03:00
Karrar
1e2fa03efe Added OnVisibilityChanged to Sandbox.Events. This is a callback that is invoked when a sandbox visibility state changes 2024-07-08 03:40:45 +03:00
Karrar
f80c9dc6e8 Fixed an issue with the previous commit. 2024-07-07 08:19:46 +03:00
Karrar
6d034b0620 Fixed an issue with NetworkTransform.Teleport not replicating properly in the client when called by the server on a client-predicted object. 2024-07-07 05:49:14 +03:00
Karrar
7319346d2a Fixed several issues with additive scene loading. 2024-07-06 05:04:07 +03:00
Karrar
a0f946f7d1 Testing a fix for an issue with additive scene loading. 2024-07-03 06:39:38 +03:00
Karrar
cd74d6e12a Testing a fix for an issue with additive scene loading. 2024-07-03 06:23:57 +03:00
Karrar
f140addbb3 Fixed several issues with additive scene loading. 2024-07-03 06:11:32 +03:00
Karrar
1cfd073481 Fixed several issues with additive scene loading. 2024-07-03 05:01:45 +03:00
Karrar
e0458a13ae Fixed an issue with OnBecameInterested and OnBecameUninterested invocation logic. 2024-07-01 18:20:56 +03:00
Karrar
68fa2debe0 Removed a testing log. 2024-07-01 15:30:42 +03:00
Karrar
c6789f90ed Fixed an issue that causes RPCs called in the server to newly spawned objects (at the same tick that the object was spawned at) to be missed in the client. 2024-07-01 12:35:19 +03:00
Karrar
b8ef936bf9 Fixed an issue with Sandbox.AttachBehaviour. 2024-06-30 16:32:11 +03:00
Karrar
214b9c3afd Fixed a rare issue when an additive scene that was just loaded in the client is unloaded in the next tick, causing an exception to be thrown. 2024-06-29 23:51:24 +03:00
Karrar
4e9e0c6bb2 Fixed NetworkSceneOperation.Scene not having the loaded scene struct value when passed to OnSceneOperationBegan . 2024-06-29 22:26:42 +03:00
Karrar
675b2466c5 Fixed a rare issue that causes state replication to break when destroying a pooled network object at the same tick it was spawned at. 2024-06-29 21:07:42 +03:00
Karrar
f866020513 Fixed an issue where NetworkSceneOperation.Scene will always have a default value when passed to OnSceneOperationBegan event. 2024-06-29 09:23:08 +03:00
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