pub struct SwimPose {
pub course: Course,
pub depth: f64,
pub wave_phase_radians: f64,
pub wave_strength: f64,
pub tail_lobe_bends_radians: [f64; 2],
pub tail_spread_radians: f64,
pub side_fin_openings_radians: [f64; 2],
pub side_fin_bends_radians: [f64; 2],
pub pelvic_fin_opening_radians: f64,
pub whisker_sway_radians: f64,
pub feeding_phase: Option<f64>,
pub mouth_opening: f64,
}Expand description
How the koi’s body and fins look in one frame. Paired values list the left fin, then the right, as the koi sees them.
Fields§
§course: CourseWhere the koi is in the frame.
depth: f64How far under the water the koi is, from zero at the surface to one.
wave_phase_radians: f64Where the body wave is in its cycle.
wave_strength: f64Multiplies the still pose’s wave amplitude.
tail_lobe_bends_radians: [f64; 2]Bend along each tail lobe; the lobes trail the wave slightly out of step.
tail_spread_radians: f64How far each tail lobe turns outward, opening the fan.
side_fin_openings_radians: [f64; 2]How far each side fin turns outward from its still direction; negative tucks it toward the body.
side_fin_bends_radians: [f64; 2]Bend along each side fin, so its tip trails its root.
pelvic_fin_opening_radians: f64How far each pelvic fin turns outward.
whisker_sway_radians: f64The whiskers swing together, trailing the head.
feeding_phase: Option<f64>Where surface feeding’s ripples and pellets are in their cycle, from zero up to one; none in every other behavior.
mouth_opening: f64How far the mouth is open, from zero closed to one wide open.