Vixen
dd8b0a81
csharp
public enum NetworkTransformAxes

Which parts of a NetworkTransform are worth sending.

Read the guide page for this →

Remarks

A door that only rotates pays forty-eight bits a tick for a position that is the same number it was when the level loaded, and a lift that only rises pays thirty-two for a rotation. Naming the axes is what stops that.

This is a property of the replicator, not of the entity. Both ends have to agree about a lane layout before a single bit is decodable, and the delta codec's baselines are checked against one fixed width — so a mask that varied per entity would be a wire format that varied per entity, which nothing on either side could parse. A game with doors and players wanting different masks gives the doors a component of their own, exactly as NetworkTransform's own remarks say a game with a bigger world does.

Fields and properties (7)

  • None

    Nothing. Refused by the replicator rather than accepted.

  • PositionX

    Send the X of the position.

  • PositionY

    Send the Y of the position.

  • PositionZ

    Send the Z of the position.

  • Position

    Send the whole position.

  • Rotation

    Send the rotation.

  • All

    Everything, which is what ships.

Used by (2)

  • MotionTestsVixen.Net.Tests
  • NetworkTransformReplicatorVixen.Net