isometric-physics
    Preparing search index...

    Function stepVesselPosition

    • Advances a vessel's position by one physics step.

      Parameters

      • pos: Point

        Current { x, y } position in world units.

      • velocity: number

        Current velocity in world units per second.

      • rotationDeg: number

        Current heading in degrees (0 = north, 90 = east).

      • deltaTime: number

        Elapsed time since the last step, in seconds.

      • gridSize: number

        Total span of the (square) world; position wraps at ±gridSize/2.

      Returns Point

      The new { x, y } position, wrapped to stay within the world bounds.