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

#include <match_render_3d_tuning.h>

Static Public Attributes

static constexpr float CONTACT_HOLD_SECONDS = 0.05f
 
static constexpr float FOLLOW_THROUGH_SECONDS = 0.26f
 
static constexpr float RECOVER_SECONDS = 0.26f
 
static constexpr float HEADER_SECONDS = 0.45f
 
static constexpr float HEADER_NOD_SECONDS = 0.14f
 
static constexpr float HEADER_HEIGHT = 1.35f
 
static constexpr float LOFT_HEIGHT = 0.6f
 
static constexpr float TELEPORT_METRES = 6.0f
 
static constexpr float WRONG_FOOT_METRES = 0.2f
 
static constexpr float CONTACT_BEHIND = 0.12f
 
static constexpr float CONTACT_ABOVE = 0.05f
 
static constexpr float TORSO_LEAN = -0.16f
 
static constexpr float PASS_LEAN = 0.08f
 
static constexpr float ARM_ABDUCTION = 0.8f
 
static constexpr float HEADER_NOD = 0.45f
 

Detailed Description

Kicks and headers, started on the step the engine strikes the ball: the kicking ankle is on the ball at that moment, then follows through (simulated seconds).

Member Data Documentation

◆ ARM_ABDUCTION

constexpr float MatchRender3DTuning::Kick::ARM_ABDUCTION = 0.8f
staticconstexpr

◆ CONTACT_ABOVE

constexpr float MatchRender3DTuning::Kick::CONTACT_ABOVE = 0.05f
staticconstexpr

◆ CONTACT_BEHIND

constexpr float MatchRender3DTuning::Kick::CONTACT_BEHIND = 0.12f
staticconstexpr

The instep meets the ball: the ankle sits behind and above it.

◆ CONTACT_HOLD_SECONDS

constexpr float MatchRender3DTuning::Kick::CONTACT_HOLD_SECONDS = 0.05f
staticconstexpr

◆ FOLLOW_THROUGH_SECONDS

constexpr float MatchRender3DTuning::Kick::FOLLOW_THROUGH_SECONDS = 0.26f
staticconstexpr

◆ HEADER_HEIGHT

constexpr float MatchRender3DTuning::Kick::HEADER_HEIGHT = 1.35f
staticconstexpr

Balls above this height (m) at the touch are headed.

◆ HEADER_NOD

constexpr float MatchRender3DTuning::Kick::HEADER_NOD = 0.45f
staticconstexpr

◆ HEADER_NOD_SECONDS

constexpr float MatchRender3DTuning::Kick::HEADER_NOD_SECONDS = 0.14f
staticconstexpr

◆ HEADER_SECONDS

constexpr float MatchRender3DTuning::Kick::HEADER_SECONDS = 0.45f
staticconstexpr

◆ LOFT_HEIGHT

constexpr float MatchRender3DTuning::Kick::LOFT_HEIGHT = 0.6f
staticconstexpr

A ball leaving higher than this (m) after one step is lofted.

◆ PASS_LEAN

constexpr float MatchRender3DTuning::Kick::PASS_LEAN = 0.08f
staticconstexpr

◆ RECOVER_SECONDS

constexpr float MatchRender3DTuning::Kick::RECOVER_SECONDS = 0.26f
staticconstexpr

◆ TELEPORT_METRES

constexpr float MatchRender3DTuning::Kick::TELEPORT_METRES = 6.0f
staticconstexpr

Ball jumps longer than this (m) in one step are restarts.

◆ TORSO_LEAN

constexpr float MatchRender3DTuning::Kick::TORSO_LEAN = -0.16f
staticconstexpr

◆ WRONG_FOOT_METRES

constexpr float MatchRender3DTuning::Kick::WRONG_FOOT_METRES = 0.2f
staticconstexpr

A ball this far to one side (m) is struck with that foot.


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