Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchRender2DTuning::Flight Struct Referencefinal

#include <match_render_2d_tuning.h>

Static Public Attributes

static constexpr int SAMPLES = 64
 
static constexpr float SAMPLE_SECONDS = 1.0f / 30.0f
 
static constexpr float FADE_SECONDS = 1.3f
 
static constexpr float STOP_SPEED = 2.5f
 
static constexpr float WIDTH_METRES = 0.16f
 
static constexpr ImU32 PASS_COLOR = IM_COL32(255, 255, 255, 150)
 
static constexpr ImU32 SHOT_COLOR = IM_COL32(255, 132, 84, 210)
 

Detailed Description

Pass and shot paths shown briefly after the ball was struck.

Member Data Documentation

◆ FADE_SECONDS

constexpr float MatchRender2DTuning::Flight::FADE_SECONDS = 1.3f
staticconstexpr

◆ PASS_COLOR

constexpr ImU32 MatchRender2DTuning::Flight::PASS_COLOR = IM_COL32(255, 255, 255, 150)
staticconstexpr

◆ SAMPLE_SECONDS

constexpr float MatchRender2DTuning::Flight::SAMPLE_SECONDS = 1.0f / 30.0f
staticconstexpr

◆ SAMPLES

constexpr int MatchRender2DTuning::Flight::SAMPLES = 64
staticconstexpr

◆ SHOT_COLOR

constexpr ImU32 MatchRender2DTuning::Flight::SHOT_COLOR = IM_COL32(255, 132, 84, 210)
staticconstexpr

◆ STOP_SPEED

constexpr float MatchRender2DTuning::Flight::STOP_SPEED = 2.5f
staticconstexpr

Below this speed (m/s) a loose ball has stopped travelling.

◆ WIDTH_METRES

constexpr float MatchRender2DTuning::Flight::WIDTH_METRES = 0.16f
staticconstexpr

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