Files
DarkflameServer/dGame/Entity.cpp
Aaron Kimbrell 15c61676d6 feat(physics): riders keep their place on moving platforms
The client sends the object it stands on in its position updates (local
space: the offset from that object's position and velocity, not turned
with it); live's servers wrote it back in the controllable physics
serialization and the other clients place the rider on their own view of
the object. DLU read the block and dropped it, and wrote 0 for it.

- ControllablePhysicsComponent keeps the block (SetLocalSpace) and writes
  it as the client does (velocity only over float epsilon).
- While it is set, the server position is the platform's position plus
  the offset, on each update and every frame between them, so proximity,
  phantom volumes and ghosting follow the platform.
- A move by anything else (a teleport) takes the rider off; a platform
  the server does not have keeps the client's world position.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:55:23 -06:00

73 KiB