mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-30 09:51:38 +00:00
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>
80 KiB
80 KiB