Skip to main content

Module movement_sync

Module movement_sync 

Source
Expand description

Shared movement synchronization state for tracked entities.

Structs§

EntityMovementSyncPackets
At most two movement packets are emitted for one tracked movement update: one body movement/rotation packet and one head-rotation packet.
EntityMovementSyncState
Per-entity movement sync state for tracked position and rotation.
EntityMovementSyncUpdate
Runtime values accepted by tracked entity movement sync.
EntityPositionSyncSnapshot
Runtime values needed to build a vanilla position sync packet.
EntityPositionSyncState
Per-entity position sync state shared by player and entity tracking.
EntityRotationSyncState
Last packed rotation values known to tracking clients.
EntityVelocitySyncState
Per-entity velocity sync state for tracked entities.
PackedEntityRotation
Packed body rotation used by entity movement packets.
ServerEntityMovementSyncResult
Movement packets and side effects selected by one ServerEntity.sendChanges pass.
ServerEntityMovementSyncState
Per-tracked-entity movement state owned by the entity tracker.
ServerEntityMovementSyncUpdate
Runtime values accepted by vanilla ServerEntity.sendChanges movement sync.

Enums§

EntityMovementSyncPacket
Concrete movement sync packet ready for broadcast.
EntityPositionRotSyncPacket
Position sync packet for entities that include rotation in delta updates.
EntityPositionSyncDecision
Encoded position sync selected for an entity movement update.
EntityPositionSyncPacket
Position sync packet for entities that do not include rotation in delta updates.

Constants§

FORCED_POS_UPDATE_PERIOD
Vanilla ServerEntity.FORCED_POS_UPDATE_PERIOD.
FORCED_TELEPORT_PERIOD
Vanilla ServerEntity.FORCED_TELEPORT_PERIOD.
POSITION_SYNC_THRESHOLD
Squared position delta needed before vanilla considers a movement worth syncing.
VELOCITY_SYNC_THRESHOLD
Squared velocity delta needed before vanilla sends an entity motion packet.