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

#include <match_render_3d_tuning.h>

Static Public Attributes

static constexpr float ANKLE_HEIGHT = 0.085f
 
static constexpr float TOE_LENGTH = 0.15f
 
static constexpr float MAX_HEEL_ANGLE = 1.05f
 
static constexpr float SWING_TOE_DROP = 0.35f
 
static constexpr float MAX_PELVIS_DROP = 0.09f
 
static constexpr float RUN_CROUCH = 0.05f
 
static constexpr float STANCE_WIDTH = 0.11f
 
static constexpr float FRONT_REACH = 0.32f
 
static constexpr float WALK_LIFT = 0.07f
 
static constexpr float SPRINT_LIFT = 0.32f
 
static constexpr float MAX_DRIFT = 0.55f
 
static constexpr float IDLE_STEP_METRES = 0.22f
 
static constexpr float IDLE_STEP_SECONDS = 0.22f
 
static constexpr float IDLE_GAIT_SPEED = 0.6f
 
static constexpr float DIRECTION_RATE = 10.0f
 
static constexpr float FAR_PIXELS = 30.0f
 
static constexpr float JUMP_REACH = 1.6f
 
static constexpr float MAX_JUMP = 0.5f
 
static constexpr float JUMP_RATE = 9.0f
 
static constexpr float HEADER_MIN_BALL = 1.3f
 
static constexpr float HEADER_MAX_BALL = 3.4f
 
static constexpr float JUMP_TUCK = 0.85f
 
static constexpr float JUMP_GATHER = 0.4f
 
static constexpr float TACKLE_COOLDOWN_RISE = 0.5f
 
static constexpr float TACKLE_SECONDS = 0.5f
 
static constexpr float TACKLE_LEAN = 0.35f
 
static constexpr float TACKLE_HIP_DROP = 0.14f
 
static constexpr float SLIDE_DISTANCE = 1.5f
 
static constexpr float SLIDE_SPEED = 4.2f
 
static constexpr float SLIDE_SECONDS = 1.1f
 
static constexpr float SLIDE_PELVIS = 0.3f
 
static constexpr float SLIDE_LEAN = -0.75f
 
static constexpr float SLIDE_LEG_REACH = 0.85f
 
static constexpr float SLIDE_TUCK_REACH = 0.25f
 
static constexpr float LUNGE_FREE = 0.45f
 
static constexpr float LUNGE_MAX = 0.45f
 
static constexpr float THROW_PICKUP_METRES = 1.6f
 
static constexpr float THROW_SECONDS = 0.45f
 
static constexpr float THROW_WHIP_SECONDS = 0.16f
 
static constexpr float THROW_GRIP_UP = 0.2f
 
static constexpr float THROW_GRIP_BACK = -0.12f
 
static constexpr float THROW_RELEASE_FORWARD = 0.38f
 
static constexpr float HAND_GRIP_HALF = 0.1f
 
static constexpr float KEEPER_GRIP_DOWN = 0.12f
 
static constexpr float KEEPER_GRIP_FORWARD = 0.24f
 
static constexpr float MIN_BULK = 0.94f
 
static constexpr float MAX_BULK = 1.07f
 

Detailed Description

Procedural skeleton: foot planting, the pelvis over the planted feet, jumps, tackles and throw-ins, and the level of detail.

Member Data Documentation

◆ ANKLE_HEIGHT

constexpr float MatchRender3DTuning::Rig::ANKLE_HEIGHT = 0.085f
staticconstexpr

Ankle above the grass with the boot flat.

◆ DIRECTION_RATE

constexpr float MatchRender3DTuning::Rig::DIRECTION_RATE = 10.0f
staticconstexpr

Direction of travel smoothing (1/s).

◆ FAR_PIXELS

constexpr float MatchRender3DTuning::Rig::FAR_PIXELS = 30.0f
staticconstexpr

Below this projected height a player is a few flat strokes.

◆ FRONT_REACH

constexpr float MatchRender3DTuning::Rig::FRONT_REACH = 0.32f
staticconstexpr

A foot is put down at most this far ahead of its hip.

◆ HAND_GRIP_HALF

constexpr float MatchRender3DTuning::Rig::HAND_GRIP_HALF = 0.1f
staticconstexpr

Half the gap between the hands on a held ball.

◆ HEADER_MAX_BALL

constexpr float MatchRender3DTuning::Rig::HEADER_MAX_BALL = 3.4f
staticconstexpr

◆ HEADER_MIN_BALL

constexpr float MatchRender3DTuning::Rig::HEADER_MIN_BALL = 1.3f
staticconstexpr

◆ IDLE_GAIT_SPEED

constexpr float MatchRender3DTuning::Rig::IDLE_GAIT_SPEED = 0.6f
staticconstexpr

Smoothed gait speed below which a player counts as standing.

◆ IDLE_STEP_METRES

constexpr float MatchRender3DTuning::Rig::IDLE_STEP_METRES = 0.22f
staticconstexpr

Standing: a foot steps once the body is this far off it.

◆ IDLE_STEP_SECONDS

constexpr float MatchRender3DTuning::Rig::IDLE_STEP_SECONDS = 0.22f
staticconstexpr

◆ JUMP_GATHER

constexpr float MatchRender3DTuning::Rig::JUMP_GATHER = 0.4f
staticconstexpr

◆ JUMP_RATE

constexpr float MatchRender3DTuning::Rig::JUMP_RATE = 9.0f
staticconstexpr

◆ JUMP_REACH

constexpr float MatchRender3DTuning::Rig::JUMP_REACH = 1.6f
staticconstexpr

Jumping for a high ball within this distance (m), up to MAX_JUMP.

◆ JUMP_TUCK

constexpr float MatchRender3DTuning::Rig::JUMP_TUCK = 0.85f
staticconstexpr

In the air the feet rise this share of the jump and gather in.

◆ KEEPER_GRIP_DOWN

constexpr float MatchRender3DTuning::Rig::KEEPER_GRIP_DOWN = 0.12f
staticconstexpr

◆ KEEPER_GRIP_FORWARD

constexpr float MatchRender3DTuning::Rig::KEEPER_GRIP_FORWARD = 0.24f
staticconstexpr

◆ LUNGE_FREE

constexpr float MatchRender3DTuning::Rig::LUNGE_FREE = 0.45f
staticconstexpr

A ball further than LUNGE_FREE (m) at a strike or block pulls the body towards it by up to LUNGE_MAX.

◆ LUNGE_MAX

constexpr float MatchRender3DTuning::Rig::LUNGE_MAX = 0.45f
staticconstexpr

◆ MAX_BULK

constexpr float MatchRender3DTuning::Rig::MAX_BULK = 1.07f
staticconstexpr

◆ MAX_DRIFT

constexpr float MatchRender3DTuning::Rig::MAX_DRIFT = 0.55f
staticconstexpr

A planted foot this far off its gait spot is put down again.

◆ MAX_HEEL_ANGLE

constexpr float MatchRender3DTuning::Rig::MAX_HEEL_ANGLE = 1.05f
staticconstexpr

◆ MAX_JUMP

constexpr float MatchRender3DTuning::Rig::MAX_JUMP = 0.5f
staticconstexpr

◆ MAX_PELVIS_DROP

constexpr float MatchRender3DTuning::Rig::MAX_PELVIS_DROP = 0.09f
staticconstexpr

The pelvis sinks at most this much to keep a front foot planted.

◆ MIN_BULK

constexpr float MatchRender3DTuning::Rig::MIN_BULK = 0.94f
staticconstexpr

Builds vary between these width factors.

◆ RUN_CROUCH

constexpr float MatchRender3DTuning::Rig::RUN_CROUCH = 0.05f
staticconstexpr

Running crouch at full stride (m).

◆ SLIDE_DISTANCE

constexpr float MatchRender3DTuning::Rig::SLIDE_DISTANCE = 1.5f
staticconstexpr

Challenges from further out (m) or faster (m/s) go to ground.

◆ SLIDE_LEAN

constexpr float MatchRender3DTuning::Rig::SLIDE_LEAN = -0.75f
staticconstexpr

◆ SLIDE_LEG_REACH

constexpr float MatchRender3DTuning::Rig::SLIDE_LEG_REACH = 0.85f
staticconstexpr

◆ SLIDE_PELVIS

constexpr float MatchRender3DTuning::Rig::SLIDE_PELVIS = 0.3f
staticconstexpr

◆ SLIDE_SECONDS

constexpr float MatchRender3DTuning::Rig::SLIDE_SECONDS = 1.1f
staticconstexpr

◆ SLIDE_SPEED

constexpr float MatchRender3DTuning::Rig::SLIDE_SPEED = 4.2f
staticconstexpr

◆ SLIDE_TUCK_REACH

constexpr float MatchRender3DTuning::Rig::SLIDE_TUCK_REACH = 0.25f
staticconstexpr

◆ SPRINT_LIFT

constexpr float MatchRender3DTuning::Rig::SPRINT_LIFT = 0.32f
staticconstexpr

◆ STANCE_WIDTH

constexpr float MatchRender3DTuning::Rig::STANCE_WIDTH = 0.11f
staticconstexpr

Half the distance between the feet at rest (m, per 1.80 m).

◆ SWING_TOE_DROP

constexpr float MatchRender3DTuning::Rig::SWING_TOE_DROP = 0.35f
staticconstexpr

Toes drop by this share while a foot swings through the air.

◆ TACKLE_COOLDOWN_RISE

constexpr float MatchRender3DTuning::Rig::TACKLE_COOLDOWN_RISE = 0.5f
staticconstexpr

A cooldown rise above this (s) marks a challenge.

◆ TACKLE_HIP_DROP

constexpr float MatchRender3DTuning::Rig::TACKLE_HIP_DROP = 0.14f
staticconstexpr

◆ TACKLE_LEAN

constexpr float MatchRender3DTuning::Rig::TACKLE_LEAN = 0.35f
staticconstexpr

◆ TACKLE_SECONDS

constexpr float MatchRender3DTuning::Rig::TACKLE_SECONDS = 0.5f
staticconstexpr

◆ THROW_GRIP_BACK

constexpr float MatchRender3DTuning::Rig::THROW_GRIP_BACK = -0.12f
staticconstexpr

◆ THROW_GRIP_UP

constexpr float MatchRender3DTuning::Rig::THROW_GRIP_UP = 0.2f
staticconstexpr

◆ THROW_PICKUP_METRES

constexpr float MatchRender3DTuning::Rig::THROW_PICKUP_METRES = 1.6f
staticconstexpr

Throw-ins: the taker holds the ball overhead near the spot.

◆ THROW_RELEASE_FORWARD

constexpr float MatchRender3DTuning::Rig::THROW_RELEASE_FORWARD = 0.38f
staticconstexpr

◆ THROW_SECONDS

constexpr float MatchRender3DTuning::Rig::THROW_SECONDS = 0.45f
staticconstexpr

◆ THROW_WHIP_SECONDS

constexpr float MatchRender3DTuning::Rig::THROW_WHIP_SECONDS = 0.16f
staticconstexpr

◆ TOE_LENGTH

constexpr float MatchRender3DTuning::Rig::TOE_LENGTH = 0.15f
staticconstexpr

Ankle to the ball of the foot: the heel lifts around this point.

◆ WALK_LIFT

constexpr float MatchRender3DTuning::Rig::WALK_LIFT = 0.07f
staticconstexpr

Swing foot clearance walking and at full stride.


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