isle-portable/extensions/include/extensions/multiplayer
foxtacles c8c3b7276e
Fix 3rd/1st person camera switch direction bugs (#4)
- Fix broadcast direction: use IsActive() instead of IsROITurnedAround()
  so the negate in BroadcastLocalState only fires when movement inversion
  is active, not based on a default-true flag

- Fix vehicle ROI direction for 3rd-person camera: undo Enter()'s
  TurnAround on small vehicles so the backward-z convention is preserved.
  Vehicles are placed with ROI z opposite to visual forward, and Enter()'s
  TurnAround breaks this for 3rd-person rendering. Applied in both
  OnActorEnter (entering while 3rd-person enabled) and ReinitForCharacter
  (enabling 3rd-person while already on a vehicle)

- Fix vehicle direction on exit: apply extra TurnAround in OnActorExit
  when 3rd-person is active, since Exit()'s TurnAround assumes Enter()'s
  TurnAround is still in effect

- Add WrappedUpdateWorldData() after manual direction flips in Disable()
  and ReinitForCharacter() to keep bounding volumes consistent and prevent
  stale world data from causing momentary camera/direction glitches

- Remove unused IsROITurnedAround() method

- Fix data race between WASM exports and game thread
2026-03-07 05:49:39 +01:00
..
platforms/emscripten Extract PlatformCallbacks interface and consolidate Emscripten files 2026-03-02 15:46:37 -08:00
animutils.h 3rd person camera (#3) 2026-03-07 01:38:45 +01:00
charactercloner.h Minimize LEGO1 changes: revert globals, move CreateCharacterClone to extension 2026-03-01 10:04:13 -08:00
networkmanager.h Fix 3rd/1st person camera switch direction bugs (#4) 2026-03-07 05:49:39 +01:00
networktransport.h Add room management, relay capacity, and rejection handling 2026-03-01 14:37:08 -08:00
platformcallbacks.h Extract PlatformCallbacks interface and consolidate Emscripten files 2026-03-02 15:46:37 -08:00
protocol.h 3rd person camera (#3) 2026-03-07 01:38:45 +01:00
remoteplayer.h 3rd person camera (#3) 2026-03-07 01:38:45 +01:00
thirdpersoncamera.h Fix 3rd/1st person camera switch direction bugs (#4) 2026-03-07 05:49:39 +01:00
worldstatesync.h Extract WorldStateSync from NetworkManager 2026-03-01 10:14:47 -08:00