Merge exp/seamless-transfer-2: seamless instance moves keep the player in place

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-11-10 16:49:22 -06:00
12 changed files with 220 additions and 39 deletions

View File

@@ -216,6 +216,13 @@ public:
*/
bool GetIsTeleporting() const { return m_IsTeleporting; }
/**
* Constructions written while this is set carry no position, rotation or velocity. For the one construction a
* client gets of its own player after a seamless instance move (docs/SeamlessTransfer.md): the client applies a
* construction's frame to its player at once, which would pull it back to where it was saved.
*/
void SetKeepClientPosition(const bool value) { m_KeepClientPosition = value; }
/**
* Returns the Physics entity for the component
* @return Physics entity for the component
@@ -400,6 +407,11 @@ private:
*/
void UpdateSpeedBoost();
/**
* Whether constructions leave the position out (SetKeepClientPosition)
*/
bool m_KeepClientPosition = false;
/**
* The list of speed boosts for this entity
*/