threejs-worldgen
    Preparing search index...

    Interface FishProps

    Props of <Fish>: every FishInput setting plus a ref. Position it with a parent <group>.

    interface FishProps {
        castShadow?: boolean;
        detail?: DeepPartial<FishDetail>;
        preset?: string;
        receiveShadow?: boolean;
        ref?: Ref<Fish | null>;
        seed?: string | number;
        species?: DeepPartial<FishSpecies>;
        speed?: number;
        states?: DeepPartial<MaterialStates>;
        turn?: number;
    }

    Hierarchy (View Summary)

    Index
    castShadow?: boolean

    Whether it casts shadows.

    Mesh resolution.

    preset?: string

    Starting species id.

    receiveShadow?: boolean

    Whether it receives shadows.

    ref?: Ref<Fish | null>

    Receives the underlying Fish.

    seed?: string | number

    Seed for this fish's size and colour variation.

    The species, resolved from preset plus your overrides.

    speed?: number

    Swimming speed in body lengths per second (drives the tail beat).

    Material states.

    turn?: number

    −1 … 1: how hard it is turning (bends the body).