Add ForceTeleport method (Originally requested as ForceResync) #265
Closed
hudmarc
started this conversation in
Feature Request
Replies: 2 comments
-
Actually after looking at the NT code some more, this could be as easy as setting the Teleport variable public. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Teleport is set on the component and there's no 'force teleport' option because you could set the value to something low, like 1 unit, and it would automatically teleport. 1 unit might not sound like a large enough distance but if you consider that most objects only move about a 20th of a unit per tick it's plenty. You can of course, adjust the value. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There was a ForceResend method implemented, and this is great. However, the intent of my original issue #164 was to have ForceResync momentarily reset the instant rates and force the NetworkTransform to jump to the latest received Transform data. It has nothing to do with forcing a send of transform data, because if the NT is extremely desynchronized on a client and Teleport is set to off there is no way to force it to teleport to its most recent TransformData and you are instead forced to wait as the NT slowly rubberbands towards its intended position.
00cfe37
The original change I suggested just adds a boolean called forceResync which has the exact same effect as turning on _enableTeleport except it is temporary and is reset to false as soon as the teleport occurs, and it can be called on clients.
Beta Was this translation helpful? Give feedback.
All reactions