Player12
An open source football management simulator
Loading...
Searching...
No Matches
PlayerRig::StrideInput Struct Reference

#include <match_player_rig.h>

Public Attributes

Vec3 rest
 
Vec3 forward
 
float yaw = 0.0f
 
float legPhase = 0.0f
 
float duty = 0.5f
 
float stanceLength = 0.0f
 
float frontReach = 0.3f
 
float liftHeight = 0.12f
 
float maxDrift = 0.5f
 
bool idle = false
 
float idleStepMetres = 0.25f
 
float stepDuration = 0.22f
 
bool otherStepping = false
 
float deltaSeconds = 0.0f
 

Detailed Description

One frame of a foot's gait, in world space.

Member Data Documentation

◆ deltaSeconds

float PlayerRig::StrideInput::deltaSeconds = 0.0f

Simulated seconds of this frame (idle steps run on the match clock).

◆ duty

float PlayerRig::StrideInput::duty = 0.5f

Share of the cycle the foot spends on the ground.

◆ forward

Vec3 PlayerRig::StrideInput::forward

Unit horizontal direction of travel.

◆ frontReach

float PlayerRig::StrideInput::frontReach = 0.3f

How far ahead of the hip a foot is put down at most.

◆ idle

bool PlayerRig::StrideInput::idle = false

Standing or shuffling: feet stay down and take short timed steps.

◆ idleStepMetres

float PlayerRig::StrideInput::idleStepMetres = 0.25f

Idle: step once the foot is this far from its rest point.

◆ legPhase

float PlayerRig::StrideInput::legPhase = 0.0f

This leg's cycle phase in [0, 2pi); stance starts at 0.

◆ liftHeight

float PlayerRig::StrideInput::liftHeight = 0.12f

◆ maxDrift

float PlayerRig::StrideInput::maxDrift = 0.5f

A pinned foot this far from where the gait wants it is put down again (sharp turns, playback jumps).

◆ otherStepping

bool PlayerRig::StrideInput::otherStepping = false

The other foot is mid-step (never lift both while idle).

◆ rest

Vec3 PlayerRig::StrideInput::rest

Point on the grass under this hip at rest.

◆ stanceLength

float PlayerRig::StrideInput::stanceLength = 0.0f

Metres the body travels while the foot is down.

◆ stepDuration

float PlayerRig::StrideInput::stepDuration = 0.22f

◆ yaw

float PlayerRig::StrideInput::yaw = 0.0f

Body facing (the boots point this way when they are put down).


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