Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchRender3DTuning::Camera Struct Referencefinal

#include <match_render_3d_tuning.h>

Static Public Attributes

static constexpr float MAX_FRAME_SECONDS = 0.1f
 
static constexpr float TARGET_RATE = 3.2f
 
static constexpr float ANGLE_RATE = 2.6f
 
static constexpr float DISTANCE_RATE = 2.6f
 
static constexpr float FOV_RATE = 3.0f
 
static constexpr float ZOOM_STEP = 0.9f
 
static constexpr float MIN_ZOOM = 0.5f
 
static constexpr float MAX_ZOOM = 1.8f
 
static constexpr float MIN_EYE_HEIGHT = 2.0f
 
static constexpr float LOOKAHEAD_SECONDS = 0.35f
 
static constexpr float MAX_LOOKAHEAD = 9.0f
 
static constexpr float NEAR_PLANE = 0.5f
 
static constexpr float FAR_PLANE = 900.0f
 
static constexpr float EYE_MIN_X = -7.0f
 
static constexpr float EYE_MAX_X = 112.0f
 
static constexpr float EYE_MIN_Y = -5.0f
 
static constexpr float EYE_MAX_Y = 73.0f
 
static constexpr float STAND_CLEAR_HEIGHT = 40.0f
 
static constexpr float MAX_CLAMP_PITCH = 1.25f
 
static constexpr float ATTACK_SWITCH_SECONDS = 2.0f
 
static constexpr float JUMP_SIM_SECONDS = 4.0f
 
static constexpr float JUMP_METRES = 30.0f
 

Member Data Documentation

◆ ANGLE_RATE

constexpr float MatchRender3DTuning::Camera::ANGLE_RATE = 2.6f
staticconstexpr

◆ ATTACK_SWITCH_SECONDS

constexpr float MatchRender3DTuning::Camera::ATTACK_SWITCH_SECONDS = 2.0f
staticconstexpr

A new attacking side must hold the ball this long to turn the end camera.

◆ DISTANCE_RATE

constexpr float MatchRender3DTuning::Camera::DISTANCE_RATE = 2.6f
staticconstexpr

◆ EYE_MAX_X

constexpr float MatchRender3DTuning::Camera::EYE_MAX_X = 112.0f
staticconstexpr

◆ EYE_MAX_Y

constexpr float MatchRender3DTuning::Camera::EYE_MAX_Y = 73.0f
staticconstexpr

◆ EYE_MIN_X

constexpr float MatchRender3DTuning::Camera::EYE_MIN_X = -7.0f
staticconstexpr

Eye stays inside the bowl (in front of every stand).

◆ EYE_MIN_Y

constexpr float MatchRender3DTuning::Camera::EYE_MIN_Y = -5.0f
staticconstexpr

◆ FAR_PLANE

constexpr float MatchRender3DTuning::Camera::FAR_PLANE = 900.0f
staticconstexpr

◆ FOV_RATE

constexpr float MatchRender3DTuning::Camera::FOV_RATE = 3.0f
staticconstexpr

◆ JUMP_METRES

constexpr float MatchRender3DTuning::Camera::JUMP_METRES = 30.0f
staticconstexpr

◆ JUMP_SIM_SECONDS

constexpr float MatchRender3DTuning::Camera::JUMP_SIM_SECONDS = 4.0f
staticconstexpr

A frame advancing the match clock by more than this (s), or moving the ball further than JUMP_METRES, is a playback jump: the camera cuts to the new framing instead of easing towards it. Both stay above what 30x playback covers in one slow frame.

◆ LOOKAHEAD_SECONDS

constexpr float MatchRender3DTuning::Camera::LOOKAHEAD_SECONDS = 0.35f
staticconstexpr

◆ MAX_CLAMP_PITCH

constexpr float MatchRender3DTuning::Camera::MAX_CLAMP_PITCH = 1.25f
staticconstexpr

Steepest pitch used to keep a low camera out of the stands.

◆ MAX_FRAME_SECONDS

constexpr float MatchRender3DTuning::Camera::MAX_FRAME_SECONDS = 0.1f
staticconstexpr

◆ MAX_LOOKAHEAD

constexpr float MatchRender3DTuning::Camera::MAX_LOOKAHEAD = 9.0f
staticconstexpr

◆ MAX_ZOOM

constexpr float MatchRender3DTuning::Camera::MAX_ZOOM = 1.8f
staticconstexpr

◆ MIN_EYE_HEIGHT

constexpr float MatchRender3DTuning::Camera::MIN_EYE_HEIGHT = 2.0f
staticconstexpr

◆ MIN_ZOOM

constexpr float MatchRender3DTuning::Camera::MIN_ZOOM = 0.5f
staticconstexpr

◆ NEAR_PLANE

constexpr float MatchRender3DTuning::Camera::NEAR_PLANE = 0.5f
staticconstexpr

◆ STAND_CLEAR_HEIGHT

constexpr float MatchRender3DTuning::Camera::STAND_CLEAR_HEIGHT = 40.0f
staticconstexpr

◆ TARGET_RATE

constexpr float MatchRender3DTuning::Camera::TARGET_RATE = 3.2f
staticconstexpr

◆ ZOOM_STEP

constexpr float MatchRender3DTuning::Camera::ZOOM_STEP = 0.9f
staticconstexpr

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