Protocol
EntityStateEntry
One entity's pose inside a WorldState/GhostState batch.
generated from the sources
Struct in namespace
Nebula · Packages/com.1by3.nebula/Runtime/Protocol/Messages.cspublic struct EntityStateEntryOne entity's pose inside a WorldState/GhostState batch.
Fields
WireSize
public const int WireSize = 8 + 4 + 2 + 12 + 4 + 6;Serialized size of one entry, for sizing Sequenced batches: id, epoch, container, position (3 floats), rotation (smallest-three, 4 bytes) and velocity (3 halves). Rotation and velocity are the two fields that tolerate compression: a pawn's yaw to a hundredth of a degree and its speed to three decimals.
NetId
public ulong NetId;Epoch
public uint Epoch;ContainerIndex
public ushort ContainerIndex;LocalPosition
public Vector3 LocalPosition;LocalRotation
public Quaternion LocalRotation;Velocity
public Vector3 Velocity;Methods
Write
public void Write(NetworkWriter w);Read
public static EntityStateEntry Read(NetworkReader r);