phaser - v4.0.0-rc.4
    Preparing search index...
    • Calculates the Transform Matrix of the given Game Object and Camera, factoring in the parent matrix if provided.

      Note that the object this results contains references to the Transform Matrices, not new instances of them. Therefore, you should use their values immediately, or copy them to your own matrix, as they will be replaced as soon as another Game Object is rendered.

      Parameters

      • src: GameObject

        The Game Object to calculate the transform matrix for.

      • camera: Cameras.Scene2D.Camera

        The camera being used to render the Game Object.

      • OptionalparentMatrix: TransformMatrix

        The transform matrix of the parent container, if any.

      • OptionalignoreCameraPosition: boolean

        Should the camera's translation be ignored? This is what moves a camera around on the screen, but it should be ignored when the camera is being rendered to a framebuffer. Default false.

      Returns GetCalcMatrixResults