Options
All
  • Public
  • Public/Protected
  • All
Menu

The state of a player in the GameState tracking state

Hierarchy

  • PlayerState

Implements

  • IPlayer

Index

Constructors

  • new PlayerState(x: number, y: number, playerId?: string, number?: number): PlayerState
  • Parameters

    • x: number
    • y: number
    • Optional playerId: string
    • Optional number: number

    Returns PlayerState

Properties

direction?: string

Direction of the player in radians, some tracking format may not have it

shirtNumber?: number

Shirt jersey number of the player, this value is mandatory if the player has no unique identifier

speed?: number

Speed of the player in km/h, some tracking format may not offer this

x: number

The x position of the player on the field length, the value is normalized from 0 (left side of the field) to 100 (right side of the field)

y: number

The y position of the player on the field width, the value is normalized from 0 (bottom of the field) to 100 (top of the field)