Table of Contents

Struct WildlifeGait

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

How an animal's legs move at a speed: steps per second, leg swing, how far into a gallop, and the body's bob. Pure, so it is tested on its own.

public readonly struct WildlifeGait
Inherited Members

Fields

Bob

public readonly float Bob

Field Value

float

Gallop

public readonly float Gallop

Field Value

float

LegSwing

public readonly float LegSwing

Field Value

float

StepsPerSecond

public readonly float StepsPerSecond

Field Value

float

Methods

Evaluate(WildlifeBodySpec, float, float, float)

public static WildlifeGait Evaluate(WildlifeBodySpec spec, float runSpeed, float speed, float alive)

Parameters

spec WildlifeBodySpec

The body (its leg length sets the stride).

runSpeed float

The species' run speed: a gallop is reached near it.

speed float

Measured ground speed, m/s.

alive float

1 alive, 0 dead (no gait).

Returns

WildlifeGait