jetlag2d
    Preparing search index...

    Class HoverMovement

    A rule for hovering at a fixed camera position

    Index
    • Indicate that this actor should hover at a specific location on the screen, rather than being placed at some point on the level itself. Note that the coordinates to this command are the center position of the hovering actor. Also, be careful about using hover with zoom... hover is relative to screen coordinates (pixels, unlike almost everywhere else in JetLag, which uses meters), not world coordinates, so it's going to look funny to use this with zoom

      Parameters

      • cfg: { screenX: number; screenY: number }
        • screenX: number

          The X coordinate (in screen pixels) where the actor should appear

        • screenY: number

          The Y coordinate (in screen pixels) where the actor should appear

      Returns HoverMovement

    rigidBody?: RigidBodyComponent

    The RigidBodyComponent to which this movement is attached