Nocturna
    Preparing search index...

    Factory for creating Coin objects.

    • Handles mesh and sound loading, and optional physics setup.
    • Can create coins for both gameplay and editor use.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Methods

    • Creates a Coin object, loads its mesh and sound, and sets up physics if requested.

      Parameters

      • config: GameObjectConfig

        The configuration for the Coin object.

      • physics: boolean

        Whether to enable physics.

      • path: string

        The mesh file path.

      Returns Coin