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

#include <match_render_3d_tuning.h>

Static Public Attributes

static constexpr float ACCEL_LEAN = 0.05f
 
static constexpr float MAX_ACCEL_LEAN = 0.22f
 
static constexpr float MAX_BRAKE_LEAN = 0.18f
 
static constexpr float STOP_DECELERATION = 3.0f
 
static constexpr float STOP_HIP_DROP = 0.05f
 
static constexpr float ACCEL_SMOOTHING = 8.0f
 
static constexpr float TURN_LEAN = 0.035f
 
static constexpr float MAX_TURN_LEAN = 0.3f
 
static constexpr float TURN_SMOOTHING = 8.0f
 
static constexpr float MAX_TURN_RATE = 9.0f
 
static constexpr float TWIST_PER_TURN_RATE = 0.07f
 
static constexpr float MAX_TWIST = 0.45f
 
static constexpr float MAX_SIM_SECONDS = 0.25f
 

Detailed Description

Whole-body poses layered over the run cycle. Leans are radians, rates per real second; accelerations come from the simulated ground speed.

Member Data Documentation

◆ ACCEL_LEAN

constexpr float MatchRender3DTuning::Pose::ACCEL_LEAN = 0.05f
staticconstexpr

Forward lean per m/s^2 of acceleration (negative when braking).

◆ ACCEL_SMOOTHING

constexpr float MatchRender3DTuning::Pose::ACCEL_SMOOTHING = 8.0f
staticconstexpr

Time constant of the acceleration estimate (1/s).

◆ MAX_ACCEL_LEAN

constexpr float MatchRender3DTuning::Pose::MAX_ACCEL_LEAN = 0.22f
staticconstexpr

◆ MAX_BRAKE_LEAN

constexpr float MatchRender3DTuning::Pose::MAX_BRAKE_LEAN = 0.18f
staticconstexpr

◆ MAX_SIM_SECONDS

constexpr float MatchRender3DTuning::Pose::MAX_SIM_SECONDS = 0.25f
staticconstexpr

Longest simulated step one frame may account for (s).

◆ MAX_TURN_LEAN

constexpr float MatchRender3DTuning::Pose::MAX_TURN_LEAN = 0.3f
staticconstexpr

◆ MAX_TURN_RATE

constexpr float MatchRender3DTuning::Pose::MAX_TURN_RATE = 9.0f
staticconstexpr

Turn rates above this (rad/s) are snaps, not running turns.

◆ MAX_TWIST

constexpr float MatchRender3DTuning::Pose::MAX_TWIST = 0.45f
staticconstexpr

◆ STOP_DECELERATION

constexpr float MatchRender3DTuning::Pose::STOP_DECELERATION = 3.0f
staticconstexpr

Braking harder than this sits the hips down over the planted feet.

◆ STOP_HIP_DROP

constexpr float MatchRender3DTuning::Pose::STOP_HIP_DROP = 0.05f
staticconstexpr

◆ TURN_LEAN

constexpr float MatchRender3DTuning::Pose::TURN_LEAN = 0.035f
staticconstexpr

Sideways lean into turns per rad/s of turn rate and m/s of speed.

◆ TURN_SMOOTHING

constexpr float MatchRender3DTuning::Pose::TURN_SMOOTHING = 8.0f
staticconstexpr

◆ TWIST_PER_TURN_RATE

constexpr float MatchRender3DTuning::Pose::TWIST_PER_TURN_RATE = 0.07f
staticconstexpr

The shoulders lead a turn: twist per rad/s of turn rate, capped.


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