Small World Engine API Reference - v0.46.1
    Preparing search index...

    Interface GearOptions

    Options for a Gear geometry.

    interface GearOptions {
        holeRadius?: number;
        innerRadius?: number;
        teeth?: number;
        thickness?: number;
        toothHeight?: number;
        vRatio?: number;
    }
    Index

    Properties

    holeRadius?: number

    The radius of the inner hole. Defaults to innerRadius / 4.

    innerRadius?: number

    The inner radius of the gear. Defaults to 1.0.

    teeth?: number

    The number of teeth. Defaults to 10.

    thickness?: number

    The thickness of the gear. Defaults to 0.5.

    toothHeight?: number

    The height of the teeth. Defaults to 0.5.

    vRatio?: number

    The ratio between the outer top edge and inner base edge. Defaults to 0.5.