|
Player12
An open source football management simulator
|
#include <match_tuning.h>
Static Public Attributes | |
| static constexpr float | GRAVITY = 9.81f |
| static constexpr float | AIR_DENSITY = 1.225f |
| static constexpr float | MASS_KG = 0.43f |
| static constexpr float | CROSS_SECTION_M2 = 0.038f |
| static constexpr float | DRAG_SUBCRITICAL = 0.45f |
| static constexpr float | DRAG_SUPERCRITICAL = 0.24f |
| static constexpr float | DRAG_CRISIS_LOW_SPEED = 8.0f |
| static constexpr float | DRAG_CRISIS_HIGH_SPEED = 14.0f |
| static constexpr float | BOUNCE_RESTITUTION = 0.62f |
| static constexpr float | BOUNCE_TANGENTIAL_RETAINED = 0.84f |
| static constexpr float | MIN_BOUNCE_SPEED = 1.0f |
| static constexpr float | ROLLING_DECELERATION = 0.75f |
| static constexpr float | ROLLING_VISCOUS_PER_SECOND = 0.05f |
| static constexpr float | CURVE_DECAY_PER_SECOND = 0.35f |
| static constexpr float | STOP_SPEED = 0.2f |
| static constexpr float | DEAD_SHOT_SPEED = 6.0f |
| static constexpr float | MAX_FLIGHT_SECONDS = 6.0f |
| static constexpr float | GOALKEEPER_CONTROL_RADIUS_METRES = 1.8f |
| static constexpr float | OUTFIELD_CONTROL_RADIUS_METRES = 1.0f |
| static constexpr float | CHEST_CONTROL_RADIUS_METRES = 0.7f |
| static constexpr float | LOW_BALL_METRES = 0.5f |
| static constexpr float | BASE_CONTROL_CHANCE = 0.74f |
| static constexpr float | TOUCH_SKILL_BONUS = 0.45f |
| static constexpr float | SPEED_CONTROL_PENALTY = 0.0065f |
| static constexpr float | MIN_CONTROL_CHANCE = 0.28f |
| static constexpr float | MAX_CONTROL_CHANCE = 0.97f |
| static constexpr float | INTERCEPT_BASE_CHANCE = 0.62f |
| static constexpr float | INTERCEPT_DEFENDING_BONUS = 0.35f |
| static constexpr float | INTERCEPT_SPEED_PENALTY = 0.018f |
| static constexpr float | INTERCEPT_MIN_CHANCE = 0.08f |
| static constexpr float | FAILED_TRAP_TIME = 0.55f |
| static constexpr float | FAILED_TOUCH_LOCKOUT = 0.3f |
| static constexpr float | HEAVY_TOUCH_RETAINED = 0.25f |
| static constexpr float | MIN_HEAVY_TOUCH_SPEED = 1.5f |
| static constexpr float | MAX_HEAVY_TOUCH_SPEED = 4.5f |
| static constexpr float | BASE_TRAP_TIME = 0.25f |
| static constexpr float | TRAP_SKILL_PENALTY = 0.35f |
| static constexpr float | MIN_POST_TOUCH_DELAY = 0.5f |
| static constexpr float | MAX_POST_TOUCH_DELAY = 0.9f |
| static constexpr float | PASSING_TOUCH_WEIGHT = 0.85f |
| static constexpr float | KEEPER_FEET_WEIGHT = 0.7f |
| static constexpr float | SAVE_DISTANCE_METRES = 1.8f |
| static constexpr float | SAVE_DIVE_TIME = 1.2f |
| static constexpr float | MIN_KEEPER_HOLD_SECONDS = 2.5f |
| static constexpr float | MAX_KEEPER_HOLD_SECONDS = 5.0f |
| static constexpr float | GOAL_NET_BALL_DEPTH = 0.02f |
Ball physics in SI units: quadratic air drag with a drag crisis, gravity, a restitution bounce, rolling resistance on the grass and curve as a heading rotation (a Magnus-effect stand-in).
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
A spent shot slower than this is a loose ball again.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
A keeper holding the ball waits for his team to push up.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |