Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchTuning::Units Struct Referencefinal

#include <match_tuning.h>

Static Public Attributes

static constexpr float BALL_Z_METRES = 105.0f
 
static constexpr float CROSSBAR_HEIGHT_METRES = 2.44f
 
static constexpr float BALL_RADIUS_METRES = 0.11f
 
static constexpr float DEFAULT_PLAYER_HEIGHT_METRES = 1.80f
 

Detailed Description

Unit conventions. Pitch x is normalised by LENGTH_METRES and y by WIDTH_METRES. The public ball height MatchBall::z stays in length units (z * BALL_Z_METRES = metres) for renderers; velocities are in m/s.

Member Data Documentation

◆ BALL_RADIUS_METRES

constexpr float MatchTuning::Units::BALL_RADIUS_METRES = 0.11f
staticconstexpr

◆ BALL_Z_METRES

constexpr float MatchTuning::Units::BALL_Z_METRES = 105.0f
staticconstexpr

◆ CROSSBAR_HEIGHT_METRES

constexpr float MatchTuning::Units::CROSSBAR_HEIGHT_METRES = 2.44f
staticconstexpr

◆ DEFAULT_PLAYER_HEIGHT_METRES

constexpr float MatchTuning::Units::DEFAULT_PLAYER_HEIGHT_METRES = 1.80f
staticconstexpr

The documentation for this struct was generated from the following file: