Nocturna
    Preparing search index...

    RocketObject represents a rocket enemy in the game.

    • Handles mesh, physics, sound, and explosion effects.
    • Implements the Enemy interface.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    explosionRadius: number = 10
    mesh: Mesh
    scene: Scene
    Type: string = "rocket"

    Methods

    • Adds a sound effect to the rocket.

      Parameters

      • name: string

        The sound name.

      • sound: StaticSound

        The StaticSound instance.

      Returns void

    • Enables collision detection for the rocket's physics body.

      Returns void

    • Plays a sound effect by name.

      Parameters

      • name: string

        The sound name.

      Returns void

    • Stops a sound effect by name.

      Parameters

      • name: string

        The sound name.

      Returns void