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

    Class FlashEffect

    A flash effect for the camera (simulated via target offset or potentially other means). Note: A real flash might need renderer support, but here we can simulate a 'jolt'.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    isFinished: boolean = false

    Whether the effect has finished its duration and should be removed.

    offset: Vector3D = ...

    The current position offset generated by this effect.

    targetOffset: Vector3D = ...

    The current target offset generated by this effect.

    type: CameraEffectType = CameraEffectType.FLASH

    The unique type identifier of the effect.

    Methods