SiliconGhetto Engine API
    Preparing search index...

    Function drawHeldTool

    • Draw a held tool in first-person view.

      Parameters

      • type: string = 'hand'

        Tool type: "hand", "pickaxe", "sword", "axe", "shovel", or "hoe"

      • color: { r?: number; g?: number; b?: number } = {}

        Tool color as RGB components (0-1 each, default gray)

      • swing: number = 0

        Swing animation progress (0 to 1)

      Returns void